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
Not matching token JDK 21 #933
Comments
I'm getting the exact same error when instanceof decomposition (Java 21 feature) is used if (!(expression instanceof Expression(var operator, var operand))) {
throw new IllegalArgumentException("Invalid filter argument");
} |
And I get a similar exception when using JDK21 anonymous variables:
generates
Tested with palantir-java-format 2.39.0 |
also in switch case this makes the formatter fail:
edit: just realised this is also a type of pattern matching |
palantir-java-format doesn't match new tokens in JDK 21
The text was updated successfully, but these errors were encountered: