1
0
mirror of synced 2026-08-03 08:51:58 +00:00

Update to Java 8 compatibility

* Spring IO Athens-BUILD-SNAPSHOT -> Cairo-BUILD-SNAPSHOT
* CGLib 3.1 -> 3.2.5 latest release Issue related to ASM https://github.com/cglib/cglib/issues/20
* AssertJ 2.2.0 -> 3.6.2 latest release
* PowerMock 1.6.2 -> 1.6.5 latest release is 1.6.6 but has regression Issue https://github.com/powermock/powermock/issues/717
* Update maven-compiler-plugin source/target to 1.8
This commit is contained in:
Joe Grandja
2017-03-20 15:38:03 -04:00
parent 8a05548dcb
commit 2b81983f7c
4 changed files with 24 additions and 18 deletions
@@ -15,11 +15,11 @@
*/
package org.springframework.security.core;
import org.junit.Test;
import java.io.DataInputStream;
import java.io.InputStream;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
@@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
public class JavaVersionTests {
private static final int JDK6_CLASS_VERSION = 50;
private static final int JDK8_CLASS_VERSION = 52;
@Test
public void authenticationCorrectJdkCompatibility() throws Exception {
@@ -45,7 +45,7 @@ public class JavaVersionTests {
data.readInt();
data.readShort(); // minor
int major = data.readShort();
assertThat(major).isEqualTo(JDK6_CLASS_VERSION);
assertThat(major).isEqualTo(JDK8_CLASS_VERSION);
}
finally {
try {