On Tue, 30 Sep 2003 1:23 pm, Bill Pugh wrote:
> The rules on final fields being set exactly once are part of the
> JVM/classfile specification.
Actually, they're not. Per the VM spec, "final" fields are read-only to
most classes but read-write at any time to the defining class itself.
It's worth noting that the implementations of System.set{In,Out,Err}
effectively make use of this difference, as does the entire
serialization system.
-dan
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel
This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:51 EDT