RFR: 8303374: Implement JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview) [v45]

Joe Darcy darcy at openjdk.org
Wed Jan 24 18:17:35 UTC 2024


On Wed, 24 Jan 2024 15:55:51 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:

>> This is the proposed patch for Primitive types in patterns, instanceof, and switch (Preview).
>> 
>> Draft spec here: https://cr.openjdk.org/~abimpoudis/instanceof/latest/
>
> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove redundant test from checkUnconditionallyExact

test/micro/org/openjdk/bench/jdk/preview/patterns/Exactness.java line 1:

> 1: /*

The exactness predicates should have regression tests on their correct operation in addition to any performance testing.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/15638#discussion_r1465361951


More information about the core-libs-dev mailing list