RFR: 8314423: Multiple patterns without unnamed variables [v2]

Jan Lahoda jlahoda at openjdk.org
Wed Aug 16 15:22:38 UTC 2023

On Wed, 16 Aug 2023 15:14:36 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:

>> test/langtools/tools/javac/T8314423.java line 4:
>>> 2:  * @test  /nodynamiccopyright/
>>> 3:  * @bug 8314423
>>> 4:  * @summary Multiple patterns without unnamed variables
>> Maybe use `@enablePreview` instead of `--enable-preview`?
> I would like to avoid the `@enablePreview` to be applied to both `@compile` commands. In the first I test that it will raise the error by checking the preview feature, and in the second that it will compile successfully. Isn't `@enablePreview` going to be applied to both?

Ah, sorry, I missed that.


PR Review Comment: https://git.openjdk.org/jdk/pull/15310#discussion_r1296071091

More information about the compiler-dev mailing list