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

Vicente Romero vromero at openjdk.java.net
Fri Jun 11 13:46:49 UTC 2021


On Fri, 11 Jun 2021 13:03:44 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> [this is a copy of a PR from openjdk/jdk:
> https://github.com/openjdk/jdk/pull/4397
> ]
> 
> 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.

looks good!

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

Marked as reviewed by vromero (Reviewer).

PR: https://git.openjdk.java.net/jdk17/pull/26


More information about the compiler-dev mailing list