Is there any way to access caller-scoped variables from an anonymous inner class in Java?
Here\'s the sample code to understand what I need:
public L
If the containing class is MyClass -->
MyClass.this.variable = value;
Do not remember if this would work with a private variable (I think it would work).
Only works for attributes of the class (class variable). Does not work for method local variables. In JSE 7 probably there will be closures to do that kind of thing.