author | duke |
Wed, 05 Jul 2017 23:01:50 +0200 | |
changeset 44228 | e46434c65a2b |
parent 27857 | 7e913a535736 |
permissions | -rw-r--r-- |
27857 | 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; |