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

Java 18 support #176

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

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
Development

Successfully merging this pull request may close these issues.

1 participant