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
infra: should use release 11 for compilation #14485
Comments
Can you share example of maven config to set this 3 items? If update is simple, you might be able to make PR from web site editor. |
@romani , Based on my observations from PR #14397 , |
@romani PR has been made for this issue. I showed it fixes the warning. |
I can not find such warning at windows builds https://ci.appveyor.com/project/Checkstyle/checkstyle/builds/49208331, strange. |
@romani See PR, CI only shows at JRE 17
|
Ok , so it is warming only for java version above 11 ? |
I can only assume it is for java versions that do not match our POM. |
@rnveach not sure how you typically process issues, should this one be closed already? the PR is merged, and since that is infrastructure only, there is nothing further to document. |
Yes, this should be closed, we lost track of it |
9240ad3#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R225
This was fixed in JDK 9. |
@rnveach you can put the definition of the release property into a profile which is only enabled on JDK9 or higher, see https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html |
The checkstyle build has warnings, because it configures only source and target for the Java compiler. That was fine with old Java versions, where that clarified the source code level and the binary code level. Meanwhile the compiler knows that it's important to also check the API of the Java runtime, because it changes between Java versions. Therefore "release" is meanwhile the recommended setting, if the source level, binary level and API level are all identical.
it is only for jdk that is not 11 that we use as default.
https://dev.azure.com/romanivanovjr/romanivanovjr/_build/results?buildId=19781&view=logs&j=30eb8b1d-aec7-5534-8285-cea9e43390b9&t=9b4e45b1-0f32-5d25-c850-57a5aa9f241d&l=80
attention to
[WARNING] system modules path not set in conjunction with -source 11
The text was updated successfully, but these errors were encountered: