mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
10 lines
321 B
Java
10 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;
|