jdk-24/test/langtools/tools/javac/importChecks/ImportCanonical1.java

13 lines
323 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @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
2007-12-01 00:00:00 +00:00
*/
package p1;
class A1 { static class I {} }
class A2 extends A1 {}