harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Varlamov <alexey.v.varla...@gmail.com>
Subject Re: [jira] Created: (HARMONY-6661) Synchonrize on mutable field in Permissions.java
Date Wed, 29 Sep 2010 07:04:50 GMT
You are correct, synchronization in readObject is superfluous.
Serialization is different indeed, yet readObject is irrelevant.


> In this case, readObject play a role like constructor, initialize the
> object, so I guess it could be safe here without "synchornized" block. But
> serialization may be different, is there any chance that someone could hold
> a reference to a incompletely deserialized object and then invoke methods on
> it?
> --
> Best Regards,
> Regis.

View raw message