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

Jan Lahoda jlahoda at openjdk.java.net
Mon Jun 14 14:29:05 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.

This pull request has now been integrated.

Changeset: abe20c18
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk17/commit/abe20c188c67a85176f1f1ea530184ce0ec4fe29
Stats:     30 lines in 2 files changed: 28 ins; 0 del; 2 mod

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

Reviewed-by: vromero

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

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


More information about the compiler-dev mailing list