RFR: 8305582: Compiler crash when compiling record patterns with var [v3]
Aggelos Biboudis
abimpoudis at openjdk.org
Mon May 22 08:41:14 UTC 2023
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13331/files
- new: https://git.openjdk.org/jdk/pull/13331/files/c13be556..be22af97
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13331&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13331&range=01-02
Stats: 466878 lines in 5383 files changed: 381422 ins; 47679 del; 37777 mod
Patch: https://git.openjdk.org/jdk/pull/13331.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13331/head:pull/13331
PR: https://git.openjdk.org/jdk/pull/13331
More information about the compiler-dev
mailing list