langtools/test/tools/javac/importChecks/NoImportedNoClasses.java
author jlahoda
Wed, 03 Dec 2014 13:46:12 +0100
changeset 27857 7e913a535736
permissions -rw-r--r--
7101822: Compiling depends on order of imports 7177813: Static import to local nested class fails Summary: MemberEnter overhaul - TypeEnter is split out of MemberEnter; the TypeEnter consists of several Phases which ensure actions are done in the correct order. Reviewed-by: mcimadamore, jfranck, aeremeev Contributed-by: jan.lahoda@oracle.com, maurizio.cimadamore@oracle.com

/*
 * @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;