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

Jan Lahoda jlahoda at openjdk.org
Thu Dec 1 10:56:36 UTC 2022


On Wed, 16 Nov 2022 15:11:32 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: b60cce6f
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b60cce6f3bf7dc96d632aa361a6eb10691dcf5c1
Stats:     226 lines in 4 files changed: 220 ins; 1 del; 5 mod

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

Reviewed-by: vromero

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

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


More information about the compiler-dev mailing list