Integrated: 8314423: Multiple patterns without unnamed variables

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


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

> This PR addresses both [JDK-8314423](https://bugs.openjdk.org/browse/JDK-8314423) and [JDK-8314216](https://bugs.openjdk.org/browse/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 openjdk.org>
Committer: Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/43311930107d1783b742adbe567e9bdbcb55775d
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

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

PR: https://git.openjdk.org/jdk/pull/15310


More information about the compiler-dev mailing list