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