-
Notifications
You must be signed in to change notification settings - Fork 48
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
JDK21 string templates not works #966
Comments
Downstream reports - diffplug/spotless#2046 |
Duplicate of #930 |
Maybe not necessarily? Text blocks and string templates are separate features, although they can be used together. For what it's worth, there were some recent changes to google-java-format to add initial support for string templates, it's possible that well be helpful for palanti-java-format (one, two, three) |
You are right. It is a preview feature in JDK 21, got me confused :) |
And in JDK 23: Remove the String Templates preview feature: https://bugs.openjdk.org/browse/JDK-8329949 |
Thanks guys. |
What happened?
If the code contains string templates,
spotlessApply
will throw errors.What did you want to happen?
should works fine.
The text was updated successfully, but these errors were encountered: