flacoco icon indicating copy to clipboard operation
flacoco copied to clipboard

Java 18 support

Open andre15silva opened this issue 3 years ago • 1 comments

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

andre15silva avatar Apr 14 '22 16:04 andre15silva

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.

andre15silva avatar Dec 12 '22 09:12 andre15silva