2007-02-08 Gary Benson <gbenson@redhat.com>

* javax/management/MBeanServerFactory.java
	(servers): Initialize.
	(createMBeanServer): Don't initialize servers.

From-SVN: r121713
This commit is contained in:
Gary Benson 2007-02-08 16:05:13 +00:00 committed by Gary Benson
parent 674474a525
commit f3062b0d1f
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-02-08 Gary Benson <gbenson@redhat.com>
* javax/management/MBeanServerFactory.java
(servers): Initialize.
(createMBeanServer): Don't initialize servers.
2007-01-31 Tom Tromey <tromey@redhat.com>
* tools/Makefile.in: Rebuilt.

View file

@ -1,5 +1,5 @@
/* MBeanServerFactory.java -- Manages server instances.
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@ -89,7 +89,7 @@ public class MBeanServerFactory
/**
* The map of registered servers (identifiers to servers).
*/
private static Map servers;
private static Map servers = new HashMap();
/**
* Private constructor to prevent instance creation.
@ -158,8 +158,6 @@ public class MBeanServerFactory
if (sm != null)
sm.checkPermission(new MBeanServerPermission("createMBeanServer"));
MBeanServer server = createServer(domain);
if (servers == null)
servers = new HashMap();
try
{
ObjectName dn = new