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
conflict with jmockit on java 11 #896
Comments
@jitendra1331 please provide complete reproducer as a zip-archive or as a GitHub repo. |
For Java 11+ class files JaCoCo version 0.8.4 uses condy (introduced in Java 11 - https://openjdk.java.net/jeps/309) - #845 , however looking at the code of JMockit clear that it doesn't handle condy properly - for example method As a temporary workaround while waiting for the fix in JMockit, you can use JaCoCo version 0.8.3. |
I can verify that using 0.8.3 is a workaround to this problem. |
What about JDK 17? JaCoCo 0.8.3 is not compatible with that version. |
@ryanmkurtz , @beatjost, did either of you find a solution for Java 17? |
We just removed our jmockit usage altogether. It seemed like the easiest path forward. |
I haven't tried it myself but it looks like |
Jacoco is conflicting with jmockit on java 11
jacoco Version 0.8.4
gradle plugin tool version : 0.8.4
Version of JMockit that was used: 1.43
*Java Version : openjdk version "11.0.3" 2019-04-16 LTS
OpenJDK Runtime Environment Corretto-11.0.3.7.1 (build 11.0.3+7-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.3.7.1 (build 11.0.3+7-LTS, mixed mode)
Gradle version 5.3.1
Both jacoco and jmockit as configured as java agents. We get below stack trace when jacoco is used with jmockit. if jacoco agent configuration is removed, tests run as usual.
The setup works fine on java 8 system. We initially suspected issue with jmockit, and hence raised an issue on jmockit; jmockit/jmockit1#615
But were suggested that the issue may be at jacoco side.
Below is the stack trace.
The text was updated successfully, but these errors were encountered: