-
Notifications
You must be signed in to change notification settings - Fork 746
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
VarChecker produces NoSuchMethodError on Java 10 #1054
Comments
Fwiw, this is the commit that removed the method: AdoptOpenJDK/openjdk-jdk@286cfda (afaict, this is a private enum; and Error Prone does not officially support Java 10; see also #860 ) |
I understood #860 such that Java 10 is supported by error-prone if using |
Well, I'm the only one who mentioned |
I fixed this in 564dbd3, and the tests are passing on JDK 10. Using Error Prone on 10 (or 11) with |
What version of Error Prone are you using?
2.3.1
Does this issue reproduce with the latest release?
Yes
What did you do?
Compile the following code with Error-Prone enabled by
-Xplugin
on OpenJDK version "10.0.1" 2018-04-17 using the "Var" checker:What did you expect to see?
Builds goes through.
What did you see instead?
A
NoSuchMethodError
(full stacktrace is below).The problem seems to always occur for multi-catch, but not for catch statements with only a single exception. Probably this is related to the fact that for multi-catch statements, the variable is effectively final.
The problem does not occur with OpenJDK version "9.0.4" (using the same way of calling Error-Prone), nor with Java 8 and the old way of calling Error-Prone.
The text was updated successfully, but these errors were encountered: