Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/langtools/tools/javac/4980495/std/Static2NonStaticImportClash.java
41153 views
1
/*
2
* @test /nodynamiccopyright/
3
* @bug 7101822 8133616
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=Static2NonStaticImportClash.out -XDrawDiagnostics Static2NonStaticImportClash.java p1/A1.java p2/A2.java
7
*
8
*/
9
10
import p2.A2.f;
11
import static p1.A1.f;
12
13
public class Static2NonStaticImportClash {
14
}
15
16