summaryrefslogtreecommitdiff
path: root/gnu/java/lang/management/MemoryPoolMXBeanImpl.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-07-29 14:05:57 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-07-29 14:05:57 +0000
commit68f4e1ca39e9b3a4669d07776b0cab10177d0631 (patch)
treea9a22fe744307e1a4d140a8e47d0d8b9029ff3dc /gnu/java/lang/management/MemoryPoolMXBeanImpl.java
parentc6cadc52dc947b78783d05a13fb751924425f223 (diff)
downloadclasspath-68f4e1ca39e9b3a4669d07776b0cab10177d0631.tar.gz
2006-07-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/lang/management/BeanImpl.java: Extended javax.management.StandardMBean. * gnu/java/lang/management/ClassLoadingMXBeanImpl.java, * gnu/java/lang/management/CompilationMXBeanImpl.java, * gnu/java/lang/management/GarbageCollectorMXBeanImpl.java, * gnu/java/lang/management/MemoryMXBeanImpl.java, * gnu/java/lang/management/MemoryManagerMXBeanImpl.java, * gnu/java/lang/management/MemoryPoolMXBeanImpl.java, * gnu/java/lang/management/OperatingSystemMXBeanImpl.java, * gnu/java/lang/management/RuntimeMXBeanImpl.java, * gnu/java/lang/management/ThreadMXBeanImpl.java: Call the superclass with the appropriate class. * java/lang/management/ManagementFactory.java: (getOperatingSystemMXBean()): Catch exception from StandardMBean. (getRuntimeMXBean()): Likewise. (getClassLoadingMXBean()): Likewise. (getThreadMXBean()): Likewise. (getMemoryMXBean()): Likewise. (getCompilationMXBean()): Likewise. (getMemoryPoolMXBeans()): Likewise. (getMemoryManagerMXBeans()): Likewise. (getGarbageCollectorMXBeans()): Likewise. * javax/management/MBeanFeatureInfo.java: (hashCode()): Fixed to check for null values.
Diffstat (limited to 'gnu/java/lang/management/MemoryPoolMXBeanImpl.java')
-rw-r--r--gnu/java/lang/management/MemoryPoolMXBeanImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/java/lang/management/MemoryPoolMXBeanImpl.java b/gnu/java/lang/management/MemoryPoolMXBeanImpl.java
index 9554aae00..ed4dccd76 100644
--- a/gnu/java/lang/management/MemoryPoolMXBeanImpl.java
+++ b/gnu/java/lang/management/MemoryPoolMXBeanImpl.java
@@ -42,6 +42,8 @@ import gnu.classpath.SystemProperties;
import java.lang.management.MemoryPoolMXBean;
import java.lang.management.MemoryUsage;
+import javax.management.NotCompliantMBeanException;
+
/**
* Provides access to information about one of the memory
* resources or pools used by the current invocation of the
@@ -78,9 +80,15 @@ public final class MemoryPoolMXBeanImpl
* Constructs a new <code>MemoryPoolMXBeanImpl</code>.
*
* @param name the name of the pool this bean represents.
+ * @throws NotCompliantMBeanException if this class doesn't implement
+ * the interface or a method appears
+ * in the interface that doesn't comply
+ * with the naming conventions.
*/
public MemoryPoolMXBeanImpl(String name)
+ throws NotCompliantMBeanException
{
+ super(MemoryPoolMXBean.class);
this.name = name;
}