提交 7565cf52 编写于 作者: J jbachorik

8009996: tests javax/management/mxbean/MiscTest.java and...

8009996: tests javax/management/mxbean/MiscTest.java and javax/management/mxbean/StandardMBeanOverrideTest.java fail
Reviewed-by: dfuchs, dholmes
上级 09729256
...@@ -258,6 +258,11 @@ public class StandardEmitterMBean extends StandardMBean ...@@ -258,6 +258,11 @@ public class StandardEmitterMBean extends StandardMBean
} }
public MBeanNotificationInfo[] getNotificationInfo() { public MBeanNotificationInfo[] getNotificationInfo() {
// this getter might get called from the super constructor
// when the notificationInfo has not been properly set yet
if (notificationInfo == null) {
return NO_NOTIFICATION_INFO;
}
if (notificationInfo.length == 0) { if (notificationInfo.length == 0) {
return notificationInfo; return notificationInfo;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册