-
Notifications
You must be signed in to change notification settings - Fork 357
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
JDK 21 - NoSuchMethodError for TreeMaker.Select #5672
Comments
@cushon Thanks for the heads-up. We test on released JDKs and so would have noticed this only in a few weeks. |
@cushon The next release of the JDK will be JDK 20. JDK 21 will be released in September. Did you mean that the failure is on JDK 20? |
I meant JDK 21 |
Thank you for the clarification. I was confused by the mismatch:
So the method is changing in JDK 20 and fails under JDK 21. |
I believe it's only changing in JDK 21, and that the release branch for JDK 20 has already been made and does not include that change |
@mernst error-prone (and checker-framework) seems to work under JDK 20, but not with JDK 21 (ea 24) |
The signature of
TreeMaker.Select
is changing in the next release of the JDK (openjdk/jdk@a917fb3#diff-116d757068eaf94ea4c877b290331659678769ec5e30145f6cb5738fd5c02adcL356-R357), and this line will need to be updated:checker-framework/javacutil/src/main/java/org/checkerframework/javacutil/trees/TreeBuilder.java
Line 122 in b11dfe5
Currently that method fails on JDK 21 with errors like:
The text was updated successfully, but these errors were encountered: