You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I think this code will fail if it is run on JDK 17 (which Error Prone still supports). Maybe this wasn't detected on CI due to missing test coverage?
The text was updated successfully, but these errors were encountered:
In f093681 the
PlaceholderUnificationVisitor
class was modified to callCaseTree.getGuard()
:error-prone/core/src/main/java/com/google/errorprone/refaster/PlaceholderUnificationVisitor.java
Line 665 in cc12b63
But, this API was only introduced in JDK 21:
https://github.com/openjdk/jdk/blob/9477c705c0bd5ce2d445abb5ca44d46656fc315f/src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java#L78-L84
So I think this code will fail if it is run on JDK 17 (which Error Prone still supports). Maybe this wasn't detected on CI due to missing test coverage?
The text was updated successfully, but these errors were encountered: