Sunbug 6934356: Vector.writeObject() synchronization risks serialization deadlock
Alan.Bateman at oracle.com
Mon Jan 10 11:56:14 UTC 2011
Neil Richards wrote:
> Based on Alan Bateman's feedback for my fix for a similar problem seen
> in java.util.Hashtable
> I've revised the changeset once again to use diamond operators in the
> testcases, and to their main methods throw Exceptions directly (rather
> than catching them in the cause of a RuntimeException).
> Also based on Dalibor Topic's suggestion
> I'm attaching the updated changeset as a webrev zip file, for ease of
> Please review this modified changeset, and let me know if anything
> further is required for its acceptance.
Looks okay to me. One minor comment is that you might want to update
writeObject's description where it currently reads "It just calls the
default writeObject method". A minor nit in the tests is that the date
range should be "2010, 2011," rather than "2010-2011".
More information about the core-libs-dev