changeset 1051:11def3259fe2

Fix 6656633.
author andrew
date Tue, 14 Apr 2009 16:32:45 +0100
parents 445d64831b6d
children 31c9fe40b052
files src/share/classes/javax/management/monitor/CounterMonitor.java src/share/classes/javax/management/monitor/GaugeMonitor.java src/share/classes/javax/management/monitor/StringMonitor.java
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/management/monitor/CounterMonitor.java	Tue Apr 14 16:32:11 2009 +0100
+++ b/src/share/classes/javax/management/monitor/CounterMonitor.java	Tue Apr 14 16:32:45 2009 +0100
@@ -599,7 +599,7 @@
      */
     @Override
     public MBeanNotificationInfo[] getNotificationInfo() {
-        return notifsInfo;
+        return notifsInfo.clone();
     }
 
     /*
--- a/src/share/classes/javax/management/monitor/GaugeMonitor.java	Tue Apr 14 16:32:11 2009 +0100
+++ b/src/share/classes/javax/management/monitor/GaugeMonitor.java	Tue Apr 14 16:32:45 2009 +0100
@@ -481,7 +481,7 @@
      */
     @Override
     public MBeanNotificationInfo[] getNotificationInfo() {
-        return notifsInfo;
+        return notifsInfo.clone();
     }
 
     /*
--- a/src/share/classes/javax/management/monitor/StringMonitor.java	Tue Apr 14 16:32:11 2009 +0100
+++ b/src/share/classes/javax/management/monitor/StringMonitor.java	Tue Apr 14 16:32:45 2009 +0100
@@ -184,6 +184,7 @@
      * @return The derived gauge of the specified object.
      *
      */
+    @Override
     public synchronized String getDerivedGauge(ObjectName object) {
         return (String) super.getDerivedGauge(object);
     }
@@ -199,6 +200,7 @@
      * @return The derived gauge timestamp of the specified object.
      *
      */
+    @Override
     public synchronized long getDerivedGaugeTimeStamp(ObjectName object) {
         return super.getDerivedGaugeTimeStamp(object);
     }
@@ -341,8 +343,9 @@
      * the Java class of the notification and the notification types sent by
      * the string monitor.
      */
+    @Override
     public MBeanNotificationInfo[] getNotificationInfo() {
-        return notifsInfo;
+        return notifsInfo.clone();
     }
 
     /*