RFR: 8341408: Implement JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview) [v2]
Aggelos Biboudis
abimpoudis at openjdk.org
Mon Oct 28 15:24:22 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 incrementally with one additional commit since the last revision:
Address review
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/21539/files
- new: https://git.openjdk.org/jdk/pull/21539/files/cd4f288e..c056b439
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=21539&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=21539&range=00-01
Stats: 8 lines in 1 file changed: 3 ins; 4 del; 1 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