author | robm |
Tue, 13 Sep 2016 14:47:29 +0100 | |
changeset 40938 | 5b0977acc842 |
parent 27119 | b80b6a2e137f |
permissions | -rw-r--r-- |
10 | 1 |
/* |
27119
b80b6a2e137f
8058410: Group 10b: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4094658 |
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 |
|
6 |
* names. |
|
27119
b80b6a2e137f
8058410: Group 10b: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=QualifiedAccess_4.out -XDrawDiagnostics QualifiedAccess_4.java |
10 | 8 |
*/ |
9 |
||
10 |
import pack1.P1; |
|
11 |
||
12 |
class CMain { |
|
13 |
||
14 |
class Foo { |
|
15 |
class Bar {} |
|
16 |
} |
|
17 |
Foo.Bar yy = x.new Foo.Bar(); // ERROR - Type in qualified 'new' must be unqualified |
|
18 |
} |