RFR (XS): 8148044: Remove Enum[0] constants from EnumSet and EnumMap

Stuart Marks stuart.marks at oracle.com
Fri Jan 22 21:37:22 UTC 2016


On 1/22/16 12:30 PM, Claes Redestad wrote:
> Thanks Stuart!
>
> I've posted a webrev including your changes here:
> http://cr.openjdk.java.net/~redestad/8148044/webrev.03/
>
> If there's a preference for this version I'll push it after the weekend.

This looks good to me, thanks for updating it. I definitely prefer this version 
of the EnumSet and BogusEnumSet test changes.

Perhaps ideally BogusEnumSet would generate its serialized stream in order to 
avoid this problem if EnumSet were to change again, but at least now finding and 
patching the right bytes manually isn't too difficult.

s'marks



More information about the core-libs-dev mailing list