Name: mc57594 Date: 06/04/97
The following code fails to compile with JAVAC 1.1.2:
1: class A {
2: Object o;
3: void func() {
4: o = new Object() { void foo() { bar(); } };
5: }
6: private void bar() {}
7: }
The compiler hangs.
======================================================================
- duplicates
-
JDK-4051281 Problem compiling when inner class references a private method
-
- Closed
-