Java User Group - Warnings clean-up hack day - 31st of Jan

Rémi Forax forax at univ-mlv.fr
Wed Feb 1 09:12:46 PST 2012


On 02/01/2012 05:37 PM, Martijn Verburg wrote:
> I'll add this to the notes, thanks John.
>
> On 31 January 2012 23:25, John Rose<john.r.rose at oracle.com>  wrote:
>> 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] ...

In fact it's worst than that because if you have an inner class in
an inner class, you can even have more than one enclosing instances
depending how the compiler choose to compile the inner-inner class.

Rémi



More information about the jdk8-dev mailing list