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

Jan Lahoda jlahoda at openjdk.java.net
Fri Jun 11 13:06:55 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`.

Thanks for the review, Vicente. I would prefer to push this into JDK 17, however so I had to create a new PR here:
https://github.com/openjdk/jdk17/pull/26

Could you please transfer your approval there? Thanks!

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

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


More information about the compiler-dev mailing list