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

Aggelos Biboudis abimpoudis at openjdk.org
Wed Jan 24 18:28:36 UTC 2024


On Wed, 24 Jan 2024 18:24:34 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove redundant test from checkUnconditionallyExact
>
> test/langtools/tools/javac/patterns/CastConversionMatch.java line 6:
> 
>> 4:  * @summary Match which involves a cast conversion
>> 5:  * @compile/fail/ref=CastConversionMatch.out -XDrawDiagnostics CastConversionMatch.java
>> 6:  * @compile --enable-preview --source ${jdk.version} CastConversionMatch.java */
> 
> @enablePreview?

I have two compile commands. Wanted to test one with and one without preview.

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

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


More information about the core-libs-dev mailing list