jdk-24/test/langtools/tools/javac/4980495/std/NonStatic2StaticImportClash.java

15 lines
428 B
Java
Raw Normal View History

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