Author and all-around good cowpoke
Posts: 13078
posted 20 years ago
It isn't instance variables but local variables that must be declared final. The reason being that special handling is required - if the object created by the inner class lives beyond the lifetime of the method call, that object will need its own copy of the local variable.
We had quite an extended discussion of the mechanism a few months ago.
Bill