[jdk19] RFR: 8289196: Patttern domination not working property for record patterns

Jan Lahoda jlahoda at openjdk.org
Tue Jun 28 13:19:15 UTC 2022


When checking that a pattern in a switch case is not dominated by a preceding pattern, handling for record pattern is mostly missing. This patch is attempting to fix that, and as it requires a bit more code, it moves the check into `Check`.

-------------

Commit messages:
 - 8289196: Patttern domination not working property for record patterns

Changes: https://git.openjdk.org/jdk19/pull/84/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk19&pr=84&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8289196
  Stats: 179 lines in 5 files changed: 151 ins; 21 del; 7 mod
  Patch: https://git.openjdk.org/jdk19/pull/84.diff
  Fetch: git fetch https://git.openjdk.org/jdk19 pull/84/head:pull/84

PR: https://git.openjdk.org/jdk19/pull/84


More information about the compiler-dev mailing list