What methods should go into a java.util.Objects class in JDK 7?

Joseph D. Darcy Joe.Darcy at Sun.COM
Fri Sep 11 20:04:50 UTC 2009


Joe Darcy wrote:
> Martin Buchholz wrote:
>> On Thu, Sep 10, 2009 at 16:48, Joe Darcy<Joe.Darcy at sun.com> wrote:
>>> Martin Buchholz wrote:
>>>> On Thu, Sep 10, 2009 at 15:48, Joe Darcy<Joe.Darcy at sun.com> wrote:
>>>>
>>>>> On 09/09/09 08:01 PM, Joe Darcy wrote:
>>>>> I noticed that the Character class should be similarly tightened:
>>>>>
>>>> Right you are.  Webrev regenerated.
>>>>
>>>> Martin
>>>>
>>> One typo inherited from my earlier suggestion (mea culpa!): as the 
>>> Character
>>> class is not a java.lang.Number, it does not have an intValue method.
>>>  Character does have a charValue method and referring to that method 
>>> in the
>>> specification of hashCode should suffice.
>>>
>>> I approve this change going back with the correction to the 
>>> Character class.
>>
>> Oops!  so many little mistakes. Webrev regenerated.
>
> Looks good.
>
> -Joe
>

Martin,

Just to be clear, I approve this change of tightening the hashCode 
specifications for Byte, Short, and Character going back into JDK 7.

Thanks,

-Joe



More information about the core-libs-dev mailing list