9bb2c5a0b3
When reporting clashing imports, use the (non-)staticness of the original import to generate the error message. Reviewed-by: mcimadamore
15 lines
428 B
Java
15 lines
428 B
Java
/*
|
|
* @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=Static2NonStaticImportClash.out -XDrawDiagnostics Static2NonStaticImportClash.java p1/A1.java p2/A2.java
|
|
*
|
|
*/
|
|
|
|
import p2.A2.f;
|
|
import static p1.A1.f;
|
|
|
|
public class Static2NonStaticImportClash {
|
|
}
|