2015-02-24 15:11:59 +00:00
|
|
|
/**
|
2020-12-30 17:20:54 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2015-02-24 15:11:59 +00:00
|
|
|
* @bug 8067886
|
|
|
|
* @summary Verify that type import on demand won't put inaccessible types into the Scope
|
|
|
|
* @compile/fail/ref=ImportInaccessible.out -XDrawDiagnostics ImportInaccessible.java
|
|
|
|
*/
|
|
|
|
package p;
|
|
|
|
import p.ImportInaccessible.Nested.*;
|
|
|
|
|
|
|
|
class ImportInaccessible {
|
|
|
|
static class Nested<X extends Inner> {
|
|
|
|
private static class Inner{}
|
|
|
|
}
|
|
|
|
}
|