RFR: 8268333: javac crashes when pattern matching switch contains default case which is not last

Vicente Romero vromero at openjdk.java.net
Thu Jun 10 16:02:43 UTC 2021


On Mon, 7 Jun 2021 18:44:06 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> The pattern matching switch desugaring should recognize cases where there is `default` case followed by a type pattern case, and not replace the type pattern with another `default`.

lgtm

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

Marked as reviewed by vromero (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/4397


More information about the compiler-dev mailing list