RFR: 8305582: Compiler crash when compiling record patterns with var [v3]

Aggelos Biboudis abimpoudis at openjdk.org
Mon May 22 11:39:04 UTC 2023


On Mon, 22 May 2023 08:41:14 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:

>> While `var` is not allowed in record pattern position the compiler was not checking it. This PR address this issue, by introducing the relevant error symbols and error types.
>> 
>> e.g., `if (o instanceof ColoredPoint(var(var x, var y), var c)) { }`
>
> Aggelos Biboudis has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
> 
>  - Update output for DeconstructionpatternsNonVar example
>  - Add more tests
>  - 8305582: Compiler crash when compiling record patterns with var

(do not merge, something needs fixing after the rebase)

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

PR Comment: https://git.openjdk.org/jdk/pull/13331#issuecomment-1557060016


More information about the compiler-dev mailing list