[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
5 changed files with 13 additions and 1 deletions
|
@ -143,6 +143,9 @@ public class ObjectName
|
|||
public ObjectName(String name)
|
||||
throws MalformedObjectNameException
|
||||
{
|
||||
if (name.length() == 0)
|
||||
name = "*:*";
|
||||
|
||||
int domainSep = name.indexOf(':');
|
||||
if (domainSep == -1)
|
||||
throw new MalformedObjectNameException("No domain separator was found.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue