2014-12-03 13:46:12 +01:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
2017-11-27 19:29:00 +01:00
|
|
|
* @bug 7101822 8133616
|
2014-12-03 13:46:12 +01:00
|
|
|
* @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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2017-11-27 19:29:00 +01:00
|
|
|
import static p1.A1.f;
|
|
|
|
import p2.A2.f;
|
2014-12-03 13:46:12 +01:00
|
|
|
|
|
|
|
public class NonStatic2StaticImportClash {
|
|
|
|
}
|