Skip to content

Java 18 support#176

Open
andre15silva wants to merge 5 commits intoASSERT-KTH:masterfrom
andre15silva:java-18
Open

Java 18 support#176
andre15silva wants to merge 5 commits intoASSERT-KTH:masterfrom
andre15silva:java-18

Conversation

@andre15silva
Copy link
Member

@andre15silva andre15silva commented Apr 14, 2022

The previous PR had a bug which stopped tests from executing and in a silent way

@andre15silva
Copy link
Member Author

andre15silva commented Dec 12, 2022

The failure is related to the asm dependency not being able to handle Java 18 classfiles:

Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 62
	at org.objectweb.asm.ClassReader.<init>(ClassReader.java:196)
	at org.objectweb.asm.ClassReader.<init>(ClassReader.java:177)
	at org.objectweb.asm.ClassReader.<init>(ClassReader.java:163)
	at org.jacoco.core.internal.instr.InstrSupport.classReaderFor(InstrSupport.java:280)
	at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:108)
	at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:133)
	... 14 more

This should not happen, as the asm dependency is inherited from jacoco and should support the same classfiles as jacoco.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant