JDK15 Build fails based on jacoco (original) (raw)
Describe the bug
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 59
at org.jacoco.agent.rt.internal_43f5073.asm.ClassReader.<init>(ClassReader.java:195)
at org.jacoco.agent.rt.internal_43f5073.asm.ClassReader.<init>(ClassReader.java:176)
at org.jacoco.agent.rt.internal_43f5073.asm.ClassReader.<init>(ClassReader.java:162)
at org.jacoco.agent.rt.internal_43f5073.core.internal.instr.InstrSupport.classReaderFor(InstrSupport.java:280)
at org.jacoco.agent.rt.internal_43f5073.core.instr.Instrumenter.instrument(Instrumenter.java:75)
at org.jacoco.agent.rt.internal_43f5073.core.instr.Instrumenter.instrument(Instrumenter.java:107)
... 50 more
To Reproduce
Build project with JDK15
- Best is having an example project which shows the code/test. This makes it possible
to reproduce your issue. - Add as much information as possible.
Current behavior
The behavior you have observed.
We have to wait until a more recent version of JaCoCo is released.
The used versions
- Maven: 3.6.3
- JDK: Java version: 15-ea, vendor: Oracle Corporation, runtime: /Users/khmarbaise/tools/jdk-15.jdk/Contents/Home
Temporary fix is to undo the JDK15 build.