summaryrefslogtreecommitdiff
path: root/java/lang
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-12-04 01:05:05 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-12-04 01:05:05 +0000
commited7702f83c34ebfccedf91bddb473ce4afe91b46 (patch)
tree6628d2ad5ff6260ea8613a8b0c5cc96fc9e07d9a /java/lang
parent7429dc1ae5f7760e0ee39dc2de22930af79dcd45 (diff)
downloadclasspath-ed7702f83c34ebfccedf91bddb473ce4afe91b46.tar.gz
2006-12-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/lang/management/BeanImpl.java: (translate(String)): Don't assume the list uses "E", just use the first and only type variable. * java/lang/management/ManagementFactory.java: (getPlatformMBeanServer()): Register logging bean. * javax/management/openmbean/OpenType.java: (OpenType(String,String,String)): Actually use the string created to handle arrays.
Diffstat (limited to 'java/lang')
-rw-r--r--java/lang/management/ManagementFactory.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/lang/management/ManagementFactory.java b/java/lang/management/ManagementFactory.java
index ef3feace7..3a2c81c42 100644
--- a/java/lang/management/ManagementFactory.java
+++ b/java/lang/management/ManagementFactory.java
@@ -53,6 +53,8 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import java.util.logging.LogManager;
+
import javax.management.InstanceAlreadyExistsException;
import javax.management.MBeanRegistrationException;
import javax.management.MBeanServer;
@@ -513,6 +515,8 @@ public class ManagementFactory
",name=" +
bean.getName()));
}
+ platformServer.registerMBean(LogManager.getLoggingMXBean(),
+ new ObjectName(LogManager.LOGGING_MXBEAN_NAME));
}
catch (InstanceAlreadyExistsException e)
{