[PATCH] 7164256 : EnumMap.clone doesn't clear the entrySet field, keeping a reference to the original Map
dbelfer at gmail.com
Sat May 26 19:30:59 UTC 2012
I have reported a bug in the implementation of the clone method of the
The instance field entrySet is not being cleared, so the entrySet field of
the new instance references to the original EnumMap.
I am providing a simple patch for review. It adds one line to the clone
method that sets the entrySet field to null.
This is my first contribution to the OpenJDK, so let me know if I am
missing some step of the process.
More information about the core-libs-dev