Name: wm38563 Date: 12/09/98
The bug still exists, but the compiler alows
DerivedClass.this.protectedMethod()
in the inner class.
Then java throws an access exception at runtime.
The compiler still complaines about calls to
protectedMethod() in the DerivedClass's InnerClass.
(Review ID: 47287)
======================================================================
- duplicates
-
JDK-4116802 Can a nested class access protected fields inherited by an enclosing class?
-
- Closed
-