git: openjdk/jdk: 8297118: Change IncompatibleClassChangeError to MatchException for exhaustive switch statements and switch expressions

Jan Lahoda jlahoda at openjdk.org
Thu Dec 1 10:57:55 UTC 2022


Changeset: b60cce6f
Author:    Jan Lahoda <jlahoda at openjdk.org>
Date:      2022-12-01 10:51:57 +0000
URL:       https://git.openjdk.org/jdk/commit/b60cce6f3bf7dc96d632aa361a6eb10691dcf5c1

8297118: Change IncompatibleClassChangeError to MatchException for exhaustive switch statements and switch expressions

Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java
! test/langtools/tools/javac/patterns/EnumTypeChanges.java
+ test/langtools/tools/javac/patterns/EnumTypeChangesNonPreview.java
+ test/langtools/tools/javac/patterns/MatchExceptionTest.java



More information about the jdk-changes mailing list