RFR: 8297118: Change IncompatibleClassChangeError to MatchException for exhaustive switch statements and switch expressions [v2]

Jan Lahoda jlahoda at openjdk.org
Thu Dec 1 08:13:18 UTC 2022


> As per recent update of the JEP 433 specification, javac should use MatchException instead of IncompatbileClassChangeError to flag switches over enum values that were exhaustive at compile time, but no longer are exhaustive at runtime. This patch implements that change.

Jan Lahoda has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11189/files
  - new: https://git.openjdk.org/jdk/pull/11189/files/c3385215..c3385215

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11189&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11189&range=00-01

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/11189.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11189/head:pull/11189

PR: https://git.openjdk.org/jdk/pull/11189


More information about the compiler-dev mailing list