Skip to content
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

Support JEP-441: Pattern Matching for switch #4660

Closed
nielsdebruin opened this issue Nov 11, 2024 · 1 comment · Fixed by #4661
Closed

Support JEP-441: Pattern Matching for switch #4660

nielsdebruin opened this issue Nov 11, 2024 · 1 comment · Fixed by #4661
Assignees
Labels
enhancement New feature or request java 21+

Comments

@nielsdebruin
Copy link
Contributor

nielsdebruin commented Nov 11, 2024

What problem are you trying to solve?

To support Java 21 recipes the parser need to be extended to ensure compatibility with JEP 440 (Record Patterns) and JEP 441 (Pattern Matching for switch).

Describe the solution you'd like

Parsing logic should recognize and handle record patterns and switch pattern matching, for different situations and edge cases, which have already been outlined in the proposal.

Additional context

@nielsdebruin nielsdebruin added the enhancement New feature or request label Nov 11, 2024
@nielsdebruin nielsdebruin linked a pull request Nov 11, 2024 that will close this issue
3 tasks
@timtebeek timtebeek changed the title Support JEP 440 and 441 Support JEP-441: Pattern Matching for switch Jan 13, 2025
@timtebeek
Copy link
Contributor

I've split off a separate

@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java 21+
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants