O. Ziggy wrote:Given that AnonymousInnerClassesFlavour1.x is private, i am guessing that reference to x from the anonymous class is accessing AnonymousInnerClassesFlavour1Controller.x.
Correct.
O. Ziggy wrote:But why is it saying that this is being access from a static context when i am creating a just in time object at the time i am access it?
But your "just in time object" is a different class. You need a AnonymousInnerClassesFlavour1Controller, and you have created a AnonymousInnerClassesFlavour1. And you can't access the x inside the AnonymousInnerClassesFlavour1, because it's private, and you're in a different class.