The attached file contains an anonymous java.awt.event.MouseAdapter
that calls a private method "resolve" defined in the outermost class.
Compiling this file with JDK 1.1.1 makes the compiler go into a CPU
loop. Making the resolve method non-private fixes the problem and
the file compiles.
Under JDK 1.1 this used to give a compiler error message, saying that
access to the provate method would not work, and recommending package
access. This error message does not seem to occur with JDK 1.1.1.
that calls a private method "resolve" defined in the outermost class.
Compiling this file with JDK 1.1.1 makes the compiler go into a CPU
loop. Making the resolve method non-private fixes the problem and
the file compiles.
Under JDK 1.1 this used to give a compiler error message, saying that
access to the provate method would not work, and recommending package
access. This error message does not seem to occur with JDK 1.1.1.
- duplicates
-
JDK-4045888 Compiler gets into a CPU loop with AdjustmentListener
-
- Closed
-
-
JDK-4051281 Problem compiling when inner class references a private method
-
- Closed
-