RFR: 8027682: javac wrongly accepts semicolons in package and import decls [v6]

Jonathan Gibbons jjg at openjdk.org
Tue Mar 21 17:45:49 UTC 2023


On Sat, 11 Feb 2023 01:30:50 GMT, Archie L. Cobbs <duke at openjdk.org> wrote:

>> test/langtools/tools/javac/diags/examples/ExtraImportSemicolonWarning.java line 26:
>> 
>>> 24: // key: compiler.warn.extraneous.semicolon
>>> 25: // key: compiler.warn.source.no.system.modules.path
>>> 26: // options: --source 20
>> 
>> Please use "--release 20" instead if possible.
>
>> Please use "--release 20" instead if possible.
> 
> Thanks - that works better.

Why is any `--release` option required?   The test should only be run by JDK 20 and later, right?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12448#discussion_r1143783911


More information about the compiler-dev mailing list