--- a/jdk/src/share/classes/com/sun/jmx/mbeanserver/Repository.java Wed Oct 21 16:28:57 2009 +0200
+++ b/jdk/src/share/classes/com/sun/jmx/mbeanserver/Repository.java Wed Oct 21 17:33:18 2009 +0200
@@ -396,7 +396,7 @@
// Set domain to default if domain is empty and not already set
if (dom.length() == 0)
- name = ObjectName.valueOf(domain + name.toString());
+ name = Util.newObjectName(domain + name.toString());
// Do we have default domain ?
if (dom == domain) { // ES: OK (dom & domain are interned)
@@ -573,7 +573,7 @@
// Pattern matching in the domain name (*, ?)
final String dom2Match = name.getDomain();
for (String dom : domainTb.keySet()) {
- if (Util.wildpathmatch(dom, dom2Match)) {
+ if (Util.wildmatch(dom, dom2Match)) {
final Map<String,NamedObject> moiTb = domainTb.get(dom);
if (allNames)
result.addAll(moiTb.values());