jdk-24/test/langtools/tools/javac/importChecks/ImportCanonical1.java
2017-09-12 19:03:39 +02:00

13 lines
323 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4462745
* @summary compiler permits to import class given by its non-canonical name
* @author gafter
*
* @compile/fail/ref=ImportCanonical1.out -XDrawDiagnostics ImportCanonical1.java ImportCanonical2.java
*/
package p1;
class A1 { static class I {} }
class A2 extends A1 {}