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
3.16.0 does not work with JDK16 in maven project #4805
Comments
Thanks for submitting a bug report. I'm sorry you are having trouble. I appreciate you providing a Maven project. Unfortunately, I cannot reproduce your problem. When I use JDK 11 or JDK 16, running When using JDK 11 or JDK 16 and running
Since everything works for me outside Maven, but does not work within Maven, I suspect there is a problem with the Maven buildfile. I'm not a Maven expert, so I cannot provide specific advice, but I'm happy to run commands that will help you diagnose the Maven build so that I can reproduce your problem. (If the Checker Framework manual's Maven instructions are incorrect, accept my apologies, and we'll fix that.) Here are the results of my runs of Maven:
|
In my reproducer, it's important to have
(or activate checker profiles in CLI). |
I'm not a maven expert myself. But here's what I get when I run javac directly with JDK15
and JDK 16
|
Probably I need to add more opens and exports then (https://checkerframework.org/manual/#javac-jdk11). |
Indeed - it was all my fault of not re-reading CF manual on upgrade. Adding remaining exports makes the maven build project successfully. @mernst - thank you for checking and pointing to direct call of javac. It shows the reason, while the exception from processor in maven build - even with
|
like this https://issues.apache.org/jira/browse/MCOMPILER-434 |
I'm glad this is working for you now! Please let us know if you have any other problems.
This is a nasty bug! I have mentioned this bug in the Checker Framework Manual. If you have any other suggestions about the documentation, please let us know. |
Commands:
Inputs
At https://github.com/pzrep/checker-jdk16
Outputs
Key outputs included in Commands above
Expectation
My expectation is that checker 3.16.0 runs succesfully with JDK16.
It looks that prev 3.15.0 fails with similar error when executed with JVM 15.
Current 3.16.0 works with JDK15 (with warning Use JDK 8, 11, or 16 to run the Checker Framework. You are using version 15) and detects violations, but fails on JDK16.
The text was updated successfully, but these errors were encountered: