Integrated: 8320145: Compiler should accept final variable in Record Pattern

Aggelos Biboudis abimpoudis at openjdk.org
Fri Dec 1 07:16:18 UTC 2023


On Thu, 30 Nov 2023 11:03:09 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:

> With this PR, if the `final` keyword is detected, `analyzePattern` returns `PatternResult.PATTERN` and `parseCaseLabel` goes through the correct if-branch in line 3268.
> 
> This improves the error message in the case of record patterns for https://github.com/openjdk/jdk/pull/15997 as well.

This pull request has now been integrated.

Changeset: 4ba94ef6
Author:    Aggelos Biboudis <abimpoudis at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4ba94ef69ef2ee576c50bb6003a795746dcdf30d
Stats:     48 lines in 3 files changed: 44 ins; 2 del; 2 mod

8320145: Compiler should accept final variable in Record Pattern

Reviewed-by: jlahoda

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

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


More information about the compiler-dev mailing list