RE: JavaMemoryModel: Deserializing transient final fields

From: Sylvia Else (sylviae@optushome.com.au)
Date: Mon Mar 08 2004 - 05:07:16 EST


At 08:36 PM 8/03/2004 +1300, Evan Ireland wrote:
>Sylvia,
>
>That also leaves unresolved the issue of what to do when you are
>creating your own sub-class of java.io.ObjectInputStream, for
>serializing classes with no readObject / readExternal. The same
>functionality needs to be available there. If Doug's suggestion
>is not needed in one case out of three, but is in the other two
>cases, it is therefore still needed :-)

Yes, I did not mean to imply that the reflection technique is not necessary
in general, just that it need not be the only way of setting a transient
final field from a readObject() method.

Sylvia.

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



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