Integrated: 8314423: Multiple patterns without unnamed variables

Aggelos Biboudis abimpoudis at
Thu Aug 17 07:36:41 UTC 2023

On Wed, 16 Aug 2023 14:52:14 GMT, Aggelos Biboudis <abimpoudis at> wrote:

> This PR addresses both [JDK-8314423]( and [JDK-8314216](, since both are relevant to checks around the structure of switch in the relevant method in `Check`. Additionally a check was needed in `analyzePattern` to detect that when a case starts with a constant case label followed by a `,` or `->` is indeed a constant expression and not a pattern as previously signified.

This pull request has now been integrated.

Changeset: 43311930
Author:    Aggelos Biboudis <abimpoudis at>
Committer: Jan Lahoda <jlahoda at>
Stats:     63 lines in 6 files changed: 63 ins; 0 del; 0 mod

8314423: Multiple patterns without unnamed variables
8314216: Case enumConstant, pattern compilation fails

Reviewed-by: jlahoda



More information about the compiler-dev mailing list