[kaffe] Final Parameters in Anonymous Local Inner Classes

Rob Gonzalez rob.gonzalez at gmail.com
Tue May 10 08:11:29 PDT 2005


Hey all,

Quick, non-Kaffe specific question to you VM hackers :)

Why does Java require that parameters for anonymous inner classes be
final if they refer to local variables in the enclosing function?  I
can't think of any particularly good reason having to do with garbage
collection or anything...

thanks,
Rob




More information about the kaffe mailing list