[concurrency-interest] Joda-Time immutability
r.spilker at topdesk.com
Mon Jun 20 07:45:02 EDT 2011
IIRC, disallowing the setting of final fields by reflection was never implemented, despite several bug reports, BECAUSE it is used indeserialization.
On 20-6-2011 13:09, Mark Thornton wrote:
> On 20/06/11 11:33, Stephen Colebourne wrote:
>> c) Try to do something clever with serialization to read the fields in
>> manually. No - can't then store the read data as the instance variable
>> has to be final...
> You can use reflection to write to final fields. This permitted under
> the memory model subject to certain restrictions.
> Mark Thornton
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
More information about the Concurrency-interest