author | lana |
Thu, 21 Jan 2016 09:46:01 -0800 | |
changeset 35340 | 38f7386ed942 |
parent 26528 | a1a7ad15183e |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26528
a1a7ad15183e
8055075: Group 9b: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4629327 |
4 |
* @summary Compiler crash on explicit use of synthetic name for inner class. |
|
5 |
* @author Neal Gafter |
|
6 |
* |
|
26528
a1a7ad15183e
8055075: Group 9b: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=FlatnameClash2.out -XDrawDiagnostics FlatnameClash2.java |
10 | 8 |
*/ |
9 |
||
10 |
package tests; |
|
11 |
||
12 |
class T1 { |
|
13 |
public void print(Inner1 inf) { |
|
14 |
inf.print(); |
|
15 |
} |
|
16 |
||
17 |
public class Inner1 { |
|
18 |
public void print() { |
|
19 |
System.out.println("Inner1"); |
|
20 |
} |
|
21 |
||
22 |
} |
|
23 |
} |
|
24 |
||
25 |
||
26 |
class T2 extends T1 { |
|
27 |
public void print() { |
|
28 |
super.print(new Inner2()); |
|
29 |
} |
|
30 |
||
31 |
private class Inner2 |
|
32 |
extends tests.T1$Inner1 // ERROR: name not found |
|
33 |
{ |
|
34 |
public void print() { |
|
35 |
System.out.println("Inner2"); |
|
36 |
} |
|
37 |
} |
|
38 |
} |