RFR: 8310128: Switch with unnamed patterns erroneously non-exhaustive
Aggelos Biboudis
abimpoudis at openjdk.org
Thu Jun 15 10:35:03 UTC 2023
When a record pattern has an unnamed pattern with the type of the corresponding record component being primitive, the switch is erroneously deemed as non-exhaustive. This PR addresses this issue by introducing the correct type for unnamed patterns during exhaustivity check.
-------------
Commit messages:
- 8310128: Switch with unnamed patterns erroneously non-exhaustive
Changes: https://git.openjdk.org/jdk/pull/14488/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14488&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8310128
Stats: 26 lines in 2 files changed: 25 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/14488.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14488/head:pull/14488
PR: https://git.openjdk.org/jdk/pull/14488
More information about the compiler-dev
mailing list