JavaMemoryModel: Are this$x fields final?

From: Bill Pugh (
Date: Mon May 24 2004 - 17:26:01 EDT

It isn't part of JSR-133.

Gilad, it should be part of the JLS/JVM spec that the this$x fields
(that link an instance of
an inner class to the enclosing instance) are final.

Is that the case? The 1.1.8 inner class specification doesn't say so
(and gives an example
where it isn't final).


On May 24, 2004, at 5:07 PM, Sylvia Else wrote:

> At 08:52 AM 24/05/2004 -0400, Bill Pugh wrote:
>> Unless some unforeseen problems come up, I'm planning to declare
>> JSR-133 Final draft Freeze Complete today.
>> Changes can still be made after final draft freeze, but the bar gets
>> higher.
>> Bill
>> -------------------------------
>> JavaMemoryModel mailing list -
> I don't think we got an answer to the question of whether the
> qualified 'this' used in an inner class (expressly or otherwise) is
> final. It wasn't relevant before the new JMM, which is presumably why
> the JLS didn't address the question, but now there are ramifications.
> Sylvia.

JavaMemoryModel mailing list -

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:01:07 EDT