2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-07 20:39:31 +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
|
|
|
|
*
|
2014-07-07 20:39:31 +00:00
|
|
|
* @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 {}
|