langtools/test/tools/javac/4980495/std/NonStatic2StaticImportClash.java
changeset 27857 7e913a535736
equal deleted inserted replaced
27856:d4711a6931e2 27857:7e913a535736
       
     1 /*
       
     2  * @test  /nodynamiccopyright/
       
     3  * @bug 7101822
       
     4  * @summary Check the when clashing types are imported through an ordinary and static import,
       
     5  *          the compile-time error is properly reported.
       
     6  * @compile/fail/ref=NonStatic2StaticImportClash.out -XDrawDiagnostics NonStatic2StaticImportClash.java p1/A1.java p2/A2.java
       
     7  *
       
     8  */
       
     9 
       
    10 import p1.A1.f;
       
    11 import static p2.A2.f;
       
    12 
       
    13 public class NonStatic2StaticImportClash {
       
    14 }