[multiple changes]
2007-03-30 Andrew Haley <aph@redhat.com> * javax/management/ObjectName.java: Handle 0-length names. 2007-03-27 Andrew Haley <aph@redhat.com> * javax/management/MBeanServerFactory.java: Use the domain that we've been passed, not the fixed string "DefaultDomain". From-SVN: r123430
This commit is contained in:
parent
bfd6b6cb22
commit
e6c45b1e34
@ -1,3 +1,12 @@
|
|||||||
|
2007-03-30 Andrew Haley <aph@redhat.com>
|
||||||
|
|
||||||
|
* javax/management/ObjectName.java: Handle 0-length names.
|
||||||
|
|
||||||
|
2007-03-27 Andrew Haley <aph@redhat.com>
|
||||||
|
|
||||||
|
* javax/management/MBeanServerFactory.java: Use the domain that
|
||||||
|
we've been passed, not the fixed string "DefaultDomain".
|
||||||
|
|
||||||
2007-03-29 Tom Tromey <tromey@redhat.com>
|
2007-03-29 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR libgcj/29869:
|
PR libgcj/29869:
|
||||||
|
@ -370,7 +370,7 @@ public class MBeanServerFactory
|
|||||||
MBeanServerDelegate delegate = builder.newMBeanServerDelegate();
|
MBeanServerDelegate delegate = builder.newMBeanServerDelegate();
|
||||||
if (delegate == null)
|
if (delegate == null)
|
||||||
throw new JMRuntimeException("A delegate could not be created.");
|
throw new JMRuntimeException("A delegate could not be created.");
|
||||||
MBeanServer server = builder.newMBeanServer("DefaultDomain", null, delegate);
|
MBeanServer server = builder.newMBeanServer(domain, null, delegate);
|
||||||
if (server == null)
|
if (server == null)
|
||||||
throw new JMRuntimeException("A server could not be created.");
|
throw new JMRuntimeException("A server could not be created.");
|
||||||
return server;
|
return server;
|
||||||
|
@ -143,6 +143,9 @@ public class ObjectName
|
|||||||
public ObjectName(String name)
|
public ObjectName(String name)
|
||||||
throws MalformedObjectNameException
|
throws MalformedObjectNameException
|
||||||
{
|
{
|
||||||
|
if (name.length() == 0)
|
||||||
|
name = "*:*";
|
||||||
|
|
||||||
int domainSep = name.indexOf(':');
|
int domainSep = name.indexOf(':');
|
||||||
if (domainSep == -1)
|
if (domainSep == -1)
|
||||||
throw new MalformedObjectNameException("No domain separator was found.");
|
throw new MalformedObjectNameException("No domain separator was found.");
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user