I have a problem with Java inner classes which I can't figure out. Suppose you have
class Outer
{
int outer = 0;
class Inner
{
int inner = Outer.this.outer; //(or just outer as it is not shadowed)
inner = 3; //or whatever, even outer = 3
}
}
Well, when I write the last assignment I get the compilation error
Syntax error on token ";", , expected
on the precedent line.
Why I cannot modify inner?
Thank you!