Re: JavaMemoryModel: Qualified this is final?

From: Sylvia Else (sylviae@optushome.com.au)
Date: Wed Apr 21 2004 - 20:30:10 EDT


I wrote

>An instance of a non-static inner class has an implied reference to
>another instance, and this reference is used when fields of the other
>instance are accessed. The reference can also be accessed directly means
>of a qualified this expression of the form classname.this.
>
>Is this reference considered to be final by the memory model, in that it
>is included in the freeze that occurs at the end of a constructor?
>
>If not, should it be?

I do not really have a view on whether or not the qualified this should be
considered final, and there are arguments both ways.

My motivation here is that it needs to be clear one way or the other, and I
don't think it is at the moment.

Sylvia.

-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



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