Update to Java 1.6

Fixes gh-3756
This commit is contained in:
Rob Winch 2016-03-14 22:23:16 -05:00
parent e945c19d7a
commit 36c381a06a
2 changed files with 6 additions and 6 deletions

View File

@ -15,13 +15,13 @@
*/ */
package org.springframework.security.core; package org.springframework.security.core;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.InputStream; import java.io.InputStream;
import org.junit.Test; import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
/** /**
* *
* @author Rob Winch * @author Rob Winch
@ -29,7 +29,7 @@ import org.junit.Test;
*/ */
public class JavaVersionTests { public class JavaVersionTests {
private static final int JDK5_CLASS_VERSION = 49; private static final int JDK6_CLASS_VERSION = 50;
@Test @Test
public void authenticationCorrectJdkCompatibility() throws Exception { public void authenticationCorrectJdkCompatibility() throws Exception {
@ -45,7 +45,7 @@ public class JavaVersionTests {
data.readInt(); data.readInt();
data.readShort(); // minor data.readShort(); // minor
int major = data.readShort(); int major = data.readShort();
assertThat(major).isEqualTo(JDK5_CLASS_VERSION); assertThat(major).isEqualTo(JDK6_CLASS_VERSION);
} }
finally { finally {
try { try {

View File

@ -5,8 +5,8 @@ apply plugin: 'javadocHotfix'
apply plugin: 'propdeps' apply plugin: 'propdeps'
apply plugin: 'propdeps-maven' apply plugin: 'propdeps-maven'
sourceCompatibility = 1.5 sourceCompatibility = 1.6
targetCompatibility = 1.5 targetCompatibility = 1.6
ext.apacheDsVersion = '1.5.5' ext.apacheDsVersion = '1.5.5'
ext.aspectjVersion = '1.8.4' ext.aspectjVersion = '1.8.4'