Java User Group - Warnings clean-up hack day - 31st of Jan
John Rose
john.r.rose at oracle.com
Tue Jan 31 15:25:49 PST 2012
On Jan 31, 2012, at 1:50 PM, Stuart Marks wrote:
> An anonymous inner class -- actually any inner class or non-static nested class -- has a reference to an "enclosing instance"
It only strengthen's your already unassailable conclusion, but I'll add: ... may have a reference to an "enclosing instance" +[and/or references to captured local variable values] ... anonymous classes have names that are synthesized by the compiler ... +[Likewise, the classes may also have synthesized fields with unpredictably varying names and types] ...
-- John
More information about the jdk8-dev
mailing list