Integrated: 8341408: Implement JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Nov 6 14:54:40 UTC 2024
On Wed, 16 Oct 2024 14:18:44 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> 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`.
This pull request has now been integrated.
Changeset: 6811a11e
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6811a11e278118b8b2781f1eaf45d363a3d2db49
Stats: 138 lines in 4 files changed: 132 ins; 3 del; 3 mod
8341408: Implement JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
Reviewed-by: vromero, jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/21539
More information about the compiler-dev
mailing list