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

Vicente Romero vromero at openjdk.org
Fri May 19 20:34:53 UTC 2023


On Fri, 19 May 2023 09:11:35 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 incrementally with one additional commit since the last revision:
> 
>   Add more tests

looks good

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

Marked as reviewed by vromero (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/13331#pullrequestreview-1435060241


More information about the compiler-dev mailing list