Integrated: 8300543 Compiler Implementation for Pattern Matching for switch

Jan Lahoda jlahoda at openjdk.org
Mon May 22 04:27:21 UTC 2023


On Fri, 17 Mar 2023 12:15:58 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> This is the first draft of a patch for JEP 440 and JEP 441. Changes included:
> 
>  - the pattern matching for switch and record patterns features are made final, together with updates to tests.
>  - parenthesized patterns are removed.
>  - qualified enum constants are supported for case labels.
> 
> This change herein also includes removal record patterns in for each loop, which may be split into a separate PR in the future.

This pull request has now been integrated.

Changeset: eaa80ad0
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/eaa80ad08c949a05abcfa48897654ed52139145b
Stats:     4391 lines in 161 files changed: 2113 ins; 1755 del; 523 mod

8300543: Compiler Implementation for Pattern Matching for switch
8300545: Compiler Implementation for Record Patterns

Co-authored-by: Aggelos Biboudis <abimpoudis at openjdk.org>
Reviewed-by: vromero, mcimadamore

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

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


More information about the core-libs-dev mailing list