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

Archie L. Cobbs duke at openjdk.org
Tue Mar 21 18:13:49 UTC 2023


On Tue, 21 Mar 2023 18:01:31 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

> What happens if you remove the option completely?

Then the `diags/CheckExamples.java` test fails when it runs against `ExtraImportSemicolonWarning.java`, because that source file will then generate an error instead of a warning as expected.

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

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


More information about the compiler-dev mailing list