jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 8027682
4* @summary Verify proper error reporting of extra semicolon before import statement
5* @compile/fail/ref=ExtraImportSemicolon.out1 -XDrawDiagnostics ExtraImportSemicolon.java
6* @compile/ref=ExtraImportSemicolon.out2 --release 20 -XDrawDiagnostics ExtraImportSemicolon.java
7*/
8
9import java.util.Map;; // NOTE: extra semicolon
10import java.util.Set;
11
12class ExtraImportSemicolon {
13}
14