jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 4629327
4* @summary Compiler crash on explicit use of synthetic name for inner class.
5* @author Neal Gafter
6*
7* @compile/fail/ref=FlatnameClash2.out -XDrawDiagnostics FlatnameClash2.java
8*/
9
10package tests;
11
12class T1 {
13public void print(Inner1 inf) {
14inf.print();
15}
16
17public class Inner1 {
18public void print() {
19System.out.println("Inner1");
20}
21
22}
23}
24
25
26class T2 extends T1 {
27public void print() {
28super.print(new Inner2());
29}
30
31private class Inner2
32extends tests.T1$Inner1 // ERROR: name not found
33{
34public void print() {
35System.out.println("Inner2");
36}
37}
38}
39