Commit c8a90e81 by Gary Benson Committed by Gary Benson

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

	* javax/management/ObjectName.java
	(toString): Return this item's canonical name.

From-SVN: r121989
parent 760eb3ea
2007-02-14 Gary Benson <gbenson@redhat.com>
* javax/management/ObjectName.java
(toString): Return this item's canonical name.
2007-02-12 Tom Tromey <tromey@redhat.com> 2007-02-12 Tom Tromey <tromey@redhat.com>
* java/util/Collections.java (UnmodifiableMap.toArray): Imported * java/util/Collections.java (UnmodifiableMap.toArray): Imported
......
/* ObjectName.java -- Represent the name of a bean, or a pattern for a name. /* ObjectName.java -- Represent the name of a bean, or a pattern for a name.
Copyright (C) 2006 Free Software Foundation, Inc. Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -716,19 +716,18 @@ public class ObjectName ...@@ -716,19 +716,18 @@ public class ObjectName
/** /**
* Returns a textual representation of the object name. * Returns a textual representation of the object name.
* The format is unspecified, but it should be expected that *
* two equivalent object names will return the same string * <p>The format is unspecified beyond that equivalent object
* from this method. * names will return the same string from this method, but note
* that Tomcat depends on the string returned by this method
* being a valid textual representation of the object name and
* will fail to start if it is not.
* *
* @return a textual representation of the object name. * @return a textual representation of the object name.
*/ */
public String toString() public String toString()
{ {
return getClass().toString() + return getCanonicalName();
"[domain = " + domain +
",properties = " + properties +
",propertyPattern = " + propertyPattern +
"]";
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment