RFR: 8314423: Multiple patterns without unnamed variables [v2]
Jan Lahoda
jlahoda at openjdk.org
Wed Aug 16 15:22:38 UTC 2023
On Wed, 16 Aug 2023 15:17:21 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.
>
> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
>
> Cleanup of T8314216
Looks good to me.
-------------
Marked as reviewed by jlahoda (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/15310#pullrequestreview-1580870628
More information about the compiler-dev
mailing list