Possible Duplicate:
Cannot refer to a non-final variable inside an inner class defined in a different method
Why it's impossible in java to refer non-final variable in inner anonymous class? Simple answer would be "Because it's prohibited", but I'd like to know, WHY did they prohibit this useful functionality? Maybe there are some sort of abilities Java lacks of or it's designed in the "wrong" way. I'd like to know.