Community
Participate
Working Groups
An anonymous inner class that refers to a variable of the enclosing class erroneously reports the variable to be inaccessible if the immediate public superclass of the inner class does not define the variable and the super superclass does define the variable but is out of scope. (example attached)
Created attachment 37915 [details] example project demonstrating the scope error
We do the right thing for method lookups, but not for fields.
Problem comes from blaming non visible receiver type, which is then changing the lookup semantics, where non visible field (only) is subsumed by enclosing match. Added LookupTest#test065-067. Fixed
fixed
Verified with I20060427-1600 for 3.2RC2