jdk-24/test/langtools/tools/javac/importChecks/NoImportedNoClasses.java
2017-09-12 19:03:39 +02:00

11 lines
321 B
Java

/*
* @test /nodynamiccopyright/
* @bug 7101822
* @summary Verify that statically importing non-existing constant causes a compile-time error
* for files without a class.
*
* @compile/fail/ref=NoImportedNoClasses.out -XDrawDiagnostics NoImportedNoClasses.java
*/
import static java.lang.Runnable.UNKNOWN;