jdk
1/**
2* @test /nodynamiccopyright/
3* @bug 8067886
4* @summary Verify that type import on demand won't put inaccessible types into the Scope
5* @compile/fail/ref=ImportInaccessible.out -XDrawDiagnostics ImportInaccessible.java
6*/
7package p;
8import p.ImportInaccessible.Nested.*;
9
10class ImportInaccessible {
11static class Nested<X extends Inner> {
12private static class Inner{}
13}
14}
15