Details
-
Bug
-
Resolution: Fixed
-
P2
-
None
-
b110
-
Not verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8034628 | 7u65 | Shanliang Jiang | P2 | Resolved | Fixed | b01 |
JDK-8024978 | 7u60 | Shanliang Jiang | P2 | Closed | Fixed | b01 |
Description
I have a test calling all MBean*Info.equals, it got 13 times NPE:
---Testing on MBeanAttributeInfo...
--->KO-1!!! MBeanAttributeInfo.equals got NPE if null paramer: class name
OK-2: MBeanAttributeInfo.equals worked on a null paramer: class name
OK-3: MBeanAttributeInfo.equals worked on a null paramer: class name
--->KO-1!!! MBeanAttributeInfo.equals got NPE if null paramer: type
OK-2: MBeanAttributeInfo.equals worked on a null paramer: type
OK-3: MBeanAttributeInfo.equals worked on a null paramer: type
--->KO-1!!! MBeanAttributeInfo.equals got NPE if null paramer: description
OK-2: MBeanAttributeInfo.equals worked on a null paramer: description
OK-3: MBeanAttributeInfo.equals worked on a null paramer: description
---Testing on MBeanConstructorInfo...
--->KO-1!!! MBeanConstructorInfo.equals got NPE if null paramer: name
OK-2: MBeanConstructorInfo.equals worked on a null paramer: name
OK-3: MBeanConstructorInfo.equals worked on a null paramer: name
--->KO-1!!! MBeanConstructorInfo.equals got NPE if null paramer: description
OK-2: MBeanConstructorInfo.equals worked on a null paramer: description
OK-3: MBeanConstructorInfo.equals worked on a null paramer: description
OK-1: MBeanConstructorInfo.equals worked on a null paramer: MBeanParameterInfo
OK-2: MBeanConstructorInfo.equals worked on a null paramer: MBeanParameterInfo
OK-3: MBeanConstructorInfo.equals worked on a null paramer: MBeanParameterInfo
OK-1: MBeanConstructorInfo.equals worked on a null paramer: descriptor
OK-2: MBeanConstructorInfo.equals worked on a null paramer: descriptor
OK-3: MBeanConstructorInfo.equals worked on a null paramer: descriptor
---Testing on MBeanOperationInfo...
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: name
OK-2: MBeanOperationInfo.equals worked on a null paramer: name
OK-3: MBeanOperationInfo.equals worked on a null paramer: name
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: description
OK-2: MBeanOperationInfo.equals worked on a null paramer: description
OK-3: MBeanOperationInfo.equals worked on a null paramer: description
OK-1: MBeanOperationInfo.equals worked on a null paramer: MBeanParameterInfo
OK-2: MBeanOperationInfo.equals worked on a null paramer: MBeanParameterInfo
OK-3: MBeanOperationInfo.equals worked on a null paramer: MBeanParameterInfo
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: type
OK-2: MBeanOperationInfo.equals worked on a null paramer: type
OK-3: MBeanOperationInfo.equals worked on a null paramer: type
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: native impact
OK-2: MBeanOperationInfo.equals worked on a null paramer: native impact
OK-3: MBeanOperationInfo.equals worked on a null paramer: native impact
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: Descriptor
OK-2: MBeanOperationInfo.equals worked on a null paramer: Descriptor
OK-3: MBeanOperationInfo.equals worked on a null paramer: Descriptor
---Testing on MBeanParameterInfo...
--->KO-1!!! MBeanParameterInfo.equals got NPE if null paramer: name
OK-2: MBeanParameterInfo.equals worked on a null paramer: name
OK-3: MBeanParameterInfo.equals worked on a null paramer: name
--->KO-1!!! MBeanParameterInfo.equals got NPE if null paramer: description
OK-2: MBeanParameterInfo.equals worked on a null paramer: description
OK-3: MBeanParameterInfo.equals worked on a null paramer: description
--->KO-1!!! MBeanParameterInfo.equals got NPE if null paramer: description
OK-2: MBeanParameterInfo.equals worked on a null paramer: description
OK-3: MBeanParameterInfo.equals worked on a null paramer: description
OK-1: MBeanParameterInfo.equals worked on a null paramer: Descriptor
OK-2: MBeanParameterInfo.equals worked on a null paramer: Descriptor
OK-3: MBeanParameterInfo.equals worked on a null paramer: Descriptor
---Testing on MBeanInfo...
OK-1: MBeanInfo.equals worked on a null paramer: class name
OK-2: MBeanInfo.equals worked on a null paramer: class name
OK-3: MBeanInfo.equals worked on a null paramer: class name
OK-1: MBeanInfo.equals worked on a null paramer: name
OK-2: MBeanInfo.equals worked on a null paramer: name
OK-3: MBeanInfo.equals worked on a null paramer: name
OK-1: MBeanInfo.equals worked on a null paramer: description
OK-2: MBeanInfo.equals worked on a null paramer: description
OK-3: MBeanInfo.equals worked on a null paramer: description
OK-1: MBeanInfo.equals worked on a null paramer: attrInfos
OK-2: MBeanInfo.equals worked on a null paramer: attrInfos
OK-3: MBeanInfo.equals worked on a null paramer: attrInfos
OK-1: MBeanInfo.equals worked on a null paramer: operaInfos
OK-2: MBeanInfo.equals worked on a null paramer: operaInfos
OK-3: MBeanInfo.equals worked on a null paramer: operaInfos
OK-1: MBeanInfo.equals worked on a null paramer: notifInfos
OK-2: MBeanInfo.equals worked on a null paramer: notifInfos
OK-3: MBeanInfo.equals worked on a null paramer: notifInfos
Exception in thread "main" java.lang.RuntimeException: Test failed: 13
at MBeanInfoEqualsTest.main(MBeanInfoEqualsTest.java:170)
Java Result: 1
---Testing on MBeanAttributeInfo...
--->KO-1!!! MBeanAttributeInfo.equals got NPE if null paramer: class name
OK-2: MBeanAttributeInfo.equals worked on a null paramer: class name
OK-3: MBeanAttributeInfo.equals worked on a null paramer: class name
--->KO-1!!! MBeanAttributeInfo.equals got NPE if null paramer: type
OK-2: MBeanAttributeInfo.equals worked on a null paramer: type
OK-3: MBeanAttributeInfo.equals worked on a null paramer: type
--->KO-1!!! MBeanAttributeInfo.equals got NPE if null paramer: description
OK-2: MBeanAttributeInfo.equals worked on a null paramer: description
OK-3: MBeanAttributeInfo.equals worked on a null paramer: description
---Testing on MBeanConstructorInfo...
--->KO-1!!! MBeanConstructorInfo.equals got NPE if null paramer: name
OK-2: MBeanConstructorInfo.equals worked on a null paramer: name
OK-3: MBeanConstructorInfo.equals worked on a null paramer: name
--->KO-1!!! MBeanConstructorInfo.equals got NPE if null paramer: description
OK-2: MBeanConstructorInfo.equals worked on a null paramer: description
OK-3: MBeanConstructorInfo.equals worked on a null paramer: description
OK-1: MBeanConstructorInfo.equals worked on a null paramer: MBeanParameterInfo
OK-2: MBeanConstructorInfo.equals worked on a null paramer: MBeanParameterInfo
OK-3: MBeanConstructorInfo.equals worked on a null paramer: MBeanParameterInfo
OK-1: MBeanConstructorInfo.equals worked on a null paramer: descriptor
OK-2: MBeanConstructorInfo.equals worked on a null paramer: descriptor
OK-3: MBeanConstructorInfo.equals worked on a null paramer: descriptor
---Testing on MBeanOperationInfo...
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: name
OK-2: MBeanOperationInfo.equals worked on a null paramer: name
OK-3: MBeanOperationInfo.equals worked on a null paramer: name
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: description
OK-2: MBeanOperationInfo.equals worked on a null paramer: description
OK-3: MBeanOperationInfo.equals worked on a null paramer: description
OK-1: MBeanOperationInfo.equals worked on a null paramer: MBeanParameterInfo
OK-2: MBeanOperationInfo.equals worked on a null paramer: MBeanParameterInfo
OK-3: MBeanOperationInfo.equals worked on a null paramer: MBeanParameterInfo
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: type
OK-2: MBeanOperationInfo.equals worked on a null paramer: type
OK-3: MBeanOperationInfo.equals worked on a null paramer: type
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: native impact
OK-2: MBeanOperationInfo.equals worked on a null paramer: native impact
OK-3: MBeanOperationInfo.equals worked on a null paramer: native impact
--->KO-1!!! MBeanOperationInfo.equals got NPE if null paramer: Descriptor
OK-2: MBeanOperationInfo.equals worked on a null paramer: Descriptor
OK-3: MBeanOperationInfo.equals worked on a null paramer: Descriptor
---Testing on MBeanParameterInfo...
--->KO-1!!! MBeanParameterInfo.equals got NPE if null paramer: name
OK-2: MBeanParameterInfo.equals worked on a null paramer: name
OK-3: MBeanParameterInfo.equals worked on a null paramer: name
--->KO-1!!! MBeanParameterInfo.equals got NPE if null paramer: description
OK-2: MBeanParameterInfo.equals worked on a null paramer: description
OK-3: MBeanParameterInfo.equals worked on a null paramer: description
--->KO-1!!! MBeanParameterInfo.equals got NPE if null paramer: description
OK-2: MBeanParameterInfo.equals worked on a null paramer: description
OK-3: MBeanParameterInfo.equals worked on a null paramer: description
OK-1: MBeanParameterInfo.equals worked on a null paramer: Descriptor
OK-2: MBeanParameterInfo.equals worked on a null paramer: Descriptor
OK-3: MBeanParameterInfo.equals worked on a null paramer: Descriptor
---Testing on MBeanInfo...
OK-1: MBeanInfo.equals worked on a null paramer: class name
OK-2: MBeanInfo.equals worked on a null paramer: class name
OK-3: MBeanInfo.equals worked on a null paramer: class name
OK-1: MBeanInfo.equals worked on a null paramer: name
OK-2: MBeanInfo.equals worked on a null paramer: name
OK-3: MBeanInfo.equals worked on a null paramer: name
OK-1: MBeanInfo.equals worked on a null paramer: description
OK-2: MBeanInfo.equals worked on a null paramer: description
OK-3: MBeanInfo.equals worked on a null paramer: description
OK-1: MBeanInfo.equals worked on a null paramer: attrInfos
OK-2: MBeanInfo.equals worked on a null paramer: attrInfos
OK-3: MBeanInfo.equals worked on a null paramer: attrInfos
OK-1: MBeanInfo.equals worked on a null paramer: operaInfos
OK-2: MBeanInfo.equals worked on a null paramer: operaInfos
OK-3: MBeanInfo.equals worked on a null paramer: operaInfos
OK-1: MBeanInfo.equals worked on a null paramer: notifInfos
OK-2: MBeanInfo.equals worked on a null paramer: notifInfos
OK-3: MBeanInfo.equals worked on a null paramer: notifInfos
Exception in thread "main" java.lang.RuntimeException: Test failed: 13
at MBeanInfoEqualsTest.main(MBeanInfoEqualsTest.java:170)
Java Result: 1
Attachments
Issue Links
- backported by
-
JDK-8034628 MBean*Info.equals: throw NPE
- Resolved
-
JDK-8024978 MBean*Info.equals: throw NPE
- Closed