jdk-24/langtools/test/tools/javac/4980495/std/Static2NonStaticImportClash.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

15 lines
420 B
Java

/*
* @test /nodynamiccopyright/
* @bug 7101822
* @summary Check the when clashing types are imported through an ordinary and static import,
* the compile-time error is properly reported.
* @compile/fail/ref=Static2NonStaticImportClash.out -XDrawDiagnostics Static2NonStaticImportClash.java p1/A1.java p2/A2.java
*
*/
import static p2.A2.f;
import p1.A1.f;
public class Static2NonStaticImportClash {
}