changeset 27857 | 7e913a535736 |
27856:d4711a6931e2 | 27857:7e913a535736 |
---|---|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 7101822 |
|
4 * @summary Verify that statically importing non-existing constant causes a compile-time error |
|
5 * for files without a class. |
|
6 * |
|
7 * @compile/fail/ref=NoImportedNoClasses.out -XDrawDiagnostics NoImportedNoClasses.java |
|
8 */ |
|
9 |
|
10 import static java.lang.Runnable.UNKNOWN; |