RFR: 8300543 Compiler Implementation for Pattern Matching for switch [v9]
Jan Lahoda
jlahoda at openjdk.org
Fri May 5 06:14:45 UTC 2023
> This is the first draft of a patch for JEP 440 and JEP 441. Changes included:
>
> - the pattern matching for switch and record patterns features are made final, together with updates to tests.
> - parenthesized patterns are removed.
> - qualified enum constants are supported for case labels.
>
> This change herein also includes removal record patterns in for each loop, which may be split into a separate PR in the future.
Jan Lahoda has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 42 commits:
- Updating MatchException javadoc.
- Merge branch 'master' into JDK-8300543
- Reverting use of record patterns in enhanced for loop.
- Cleanup: reflecting review feedback.
- Merge branch 'master' into JDK-8300543
- Reflecting review changes.
- Adding test.
- Removing redundant continue, as noted on the review.
- Replacing use of mutable callsite with a mutable state.
- Reflecting review feedback.
- ... and 32 more: https://git.openjdk.org/jdk/compare/a87262ef...79bbd717
-------------
Changes: https://git.openjdk.org/jdk/pull/13074/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13074&range=08
Stats: 4262 lines in 159 files changed: 2025 ins; 1722 del; 515 mod
Patch: https://git.openjdk.org/jdk/pull/13074.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13074/head:pull/13074
PR: https://git.openjdk.org/jdk/pull/13074
More information about the core-libs-dev
mailing list