Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail on Java 17 #161

Open
wborn opened this issue Nov 9, 2022 · 0 comments
Open

Tests fail on Java 17 #161

wborn opened this issue Nov 9, 2022 · 0 comments

Comments

@wborn
Copy link
Contributor

wborn commented Nov 9, 2022

I try to use Java 17 for everything nowadays but unfortunately this project fails to build with it:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.lastnpe.eea.test.SelfTest
[FAIL] java/time/ZonedDateTime.eea: Unsupported class file major version 61
[FAIL] java/time/temporal/TemporalQuery.eea: Unsupported class file major version 61
[FAIL] java/time/LocalDate.eea: Unsupported class file major version 61
[FAIL] java/time/LocalTime.eea: Unsupported class file major version 61
[FAIL] java/lang/Thread.eea: Unsupported class file major version 61
[FAIL] java/lang/RuntimePermission.eea: Unsupported class file major version 61
[FAIL] java/lang/IllegalAccessError.eea: Unsupported class file major version 61
[FAIL] java/lang/Integer.eea: Unsupported class file major version 61
[FAIL] java/lang/NullPointerException.eea: Unsupported class file major version 61
[FAIL] java/lang/Runtime$Version.eea: Unsupported class file major version 61
[FAIL] java/lang/VirtualMachineError.eea: Unsupported class file major version 61
...
[FAIL] javax/swing/DefaultListCellRenderer.eea: Unsupported class file major version 61
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.139 sec <<< FAILURE! - in org.lastnpe.eea.test.SelfTest
org.lastnpe.eea.test.SelfTest.testEeaConsistency()  Time elapsed: 0.138 sec  <<< FAILURE!
org.opentest4j.AssertionFailedError: There were eea inconsistences detected
	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:39)
	at org.junit.jupiter.api.Assertions.fail(Assertions.java:117)
	at org.lastnpe.eea.test.SelfTest.testEeaConsistency(SelfTest.java:30)


Results :

Failed tests: 
  org.lastnpe.eea.test.SelfTest#testEeaConsistency  There were eea inconsistence...

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

It works better after upgrading the ASM dependency, but probably due to some internal Java changes the method signatures changed and the SelfTest still fails:

[INFO] Running org.lastnpe.eea.test.SelfTest
[FAIL] java/security/acl/Permission.eea: Class not found
[FAIL] java/util/HashMap.eea: Did not find: getNode (ILjava/lang/Object;)Ljava/util/HashMap$Node<TK;TV;>;
Candidates:
getNode
 (Ljava/lang/Object;)Ljava/util/HashMap$Node<TK;TV;>;
 (Ljava/lang/Object;)Ljava/util/HashMap$Node<TK;TV;>;
[FAIL] java/lang/ClassNotFoundException.eea: Did not find: getCause ()Ljava/lang/Throwable;
No Candidates found
[FAIL] java/util/jar/JarFile.eea: Did not find: getMetaInfEntryNames ()[Ljava/lang/String;
No Candidates found
[FAIL] java/util/jar/JarInputStream.eea: Did not find: getBytes (Ljava/io/InputStream;)[B
No Candidates found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant