Re: JavaMemoryModel: final, pseudo-final and write protectedfields

From: Joseph Bowbeer (jozart@csi.com)
Date: Thu Oct 21 1999 - 16:51:31 EDT


> I haven't been able to find any code that actually invokes the setIn,
> setOut and setErr functions, so I don't have a feeling for how
> important that is. One suggestion would be to deprecate those
> functions, and see who squeals.
>

Or add getIn, getOut, and getErr methods and force everyone to use them :)

Or, more practical: change these fields from 'final' to 'volatile' (and then
fix 'volatile').

--
Joe Bowbeer

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



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