RFR: 8341408: Implement JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview) [v3]
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Oct 30 14:29:31 UTC 2024
> This PR prepares the improvement for JEP 488.
>
> The proposed approach is described in the CSR.
>
> In terms of compiler implementation, we add the related translation in `TransPatterns`. Interestingly, this issue would be ideally addressed in `TransTypes`. However, there are some conveniences in `TransPatterns` that would need to be pulled into `TransTypes` to make this work: 1) the dependency to `makeBinary` and transitively to `operators` and 2) a lot of ceremony around `currentMethodSym` is already setup nicely in `TransPatterns`.
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:
- Merge branch 'master' into fix-#8341408
- Address review
- 8341408: Implement JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/21539/files
- new: https://git.openjdk.org/jdk/pull/21539/files/c056b439..ab587198
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=21539&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=21539&range=01-02
Stats: 106140 lines in 1693 files changed: 39061 ins; 62093 del; 4986 mod
Patch: https://git.openjdk.org/jdk/pull/21539.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21539/head:pull/21539
PR: https://git.openjdk.org/jdk/pull/21539
More information about the compiler-dev
mailing list