RFR: 8300543 Compiler Implementation for Pattern Matching for switch [v3]
Jan Lahoda
jlahoda at openjdk.org
Thu Apr 20 17:05:15 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 incrementally with two additional commits since the last revision:
- Reflecting review feedback.
- Fixing infinite loop in exhaustiveness computation caused by re-adding bindings that are already in the list.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13074/files
- new: https://git.openjdk.org/jdk/pull/13074/files/a6ba602b..bb59254e
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13074&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13074&range=01-02
Stats: 343 lines in 7 files changed: 282 ins; 42 del; 19 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