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
Issue #9146: upgrade minimal required jdk version to 11 #9281
Conversation
@@ -1,3 +1,4 @@ | |||
//non-compiled with javac: Compilable with Java8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The underscore (_
) is not a valid name for a variable since java9.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pbludov Are you saying you can't name variables like MY_EXAMPLE_HERE
anymore for constants?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, just the underscore itself: _
invalid, but __
valid. Comes from http://openjdk.java.net/jeps/302
New SpotBugs errors:
Why don't we get these violations for Java8 builds? |
a7a04b7
to
b8dd001
Compare
TODO:
|
a84bc77
to
01b09b8
Compare
c8e4b41
to
e5b5b78
Compare
e5b5b78
to
c2e1424
Compare
closing for now, will return to this issue later. |
Issue #9146
Not to merge. This PR is about finding out how ready we are to move to java 11.
When all the issues are resolved, the last PR will have to add a new check to CI to make sure that the code in master can be built with
--source=11
.