jdk-24/langtools/test/tools/javac/importChecks/NoImportedNoClasses.java
Jan Lahoda d739446063 7101822: Compiling depends on order of imports
7177813: Static import to local nested class fails

MemberEnter overhaul - TypeEnter is split out of MemberEnter; the TypeEnter consists of several Phases which ensure actions are done in the correct order.

Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore, jfranck, aeremeev
2014-12-03 13:46:12 +01: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;