RFR: 8341408: Implement JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
Vicente Romero
vromero at openjdk.org
Mon Oct 28 14:50:37 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`.
test/langtools/tools/javac/patterns/PrimitiveTypesInTestingContextErasure.java line 1:
> 1: import java.util.List;
nit: this import seems to be out of place
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21539#discussion_r1819204784
More information about the compiler-dev
mailing list