jmx-dev Codereview request: 8023529 MBean*Info.equals: throw NPE
shanliang
shanliang.jiang at oracle.com
Fri Sep 6 06:17:00 PDT 2013
Daniel Fuchs wrote:
> On 9/6/13 1:24 PM, shanliang wrote:
>> Hi,
>>
>> Thanks to review the following fix:
>>
>> webrev: http://cr.openjdk.java.net/~sjiang/jdk-8023529/00/
>> bug: https://bugs.openjdk.java.net/browse/JDK-8023954
>>
>> Shanliang
>>
>
> Hi Shanliang,
>
> Looks good - but it looks as if some hashCode() will suffer from the
> same issue (for instance MBeanOperationInfo.hashCode)
>
> Do you have an other defect to track that?
We have another bug JDK-8023669 and thank you for having done the code
review :) I am waiting a reviewer's review for push the fix
>
> I have to wonder why we allow to create an MBeanOperationInfo
> with a null name though... I wished the first implementation
> had thrown NPE at construction time.
I had same wondering, but I had no intention to modify it because that
is related to the specification.
The class OpenMBeanOperation does refuse a null or empty class name.
Shanliang
>
> -- daniel
More information about the serviceability-dev
mailing list