equal
deleted
inserted
replaced
3 * @bug 4094658 4277300 4785453 |
3 * @bug 4094658 4277300 4785453 |
4 * @summary Test enforcement of JLS 6.6.1 and 6.6.2 rules requiring that |
4 * @summary Test enforcement of JLS 6.6.1 and 6.6.2 rules requiring that |
5 * the type to which a component member belongs be accessible in qualified |
5 * the type to which a component member belongs be accessible in qualified |
6 * names. |
6 * names. |
7 * |
7 * |
8 * @run shell QualifiedAccess_2.sh |
8 * @compile pack1/P1.java |
|
9 * @compile pack1/P2.java |
|
10 * @compile/fail/ref=QualifiedAccess_2.out -XDrawDiagnostics -XDstdout QualifiedAccess_2.java |
9 */ |
11 */ |
10 |
12 |
11 import pack1.P1; |
13 import pack1.P1; |
12 |
14 |
13 class A { |
15 class A { |