Open Bananeweizen opened 6 months ago
Thanks for pointing this out! Indeed our Java 21 parser does not yet support all feature of Java 21, regrettably. Definitely something to improve as Java 21 becomes more mainstream. The test is already helpful, and thanks for the offer to help explore what changes are needed.
Not sure if you'd already seen that we have some detailed set up instructions specifically for openrewrite/rewrite, which might help you here to limit to just the modules you're interested in. Beyond that Slack is perhaps the best source of info for questions around expanding the parser, such that we can loop in folks with more knowledge in a more synchronous fashion.
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
No changes.
What did you see instead?
The Java formatter wrongly adds "default" to the case statement label.
Are you interested in contributing a fix to OpenRewrite?
Maybe. Right now I have trouble getting IDEA to compile rewrite, so I can't really debug...