diff options
| author | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-15 09:02:38 +0000 |
|---|---|---|
| committer | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-15 09:02:38 +0000 |
| commit | 36007dcde41266749b957d391bf5a146e912b5eb (patch) | |
| tree | 36db14a8652a87213605e219b163f3fc6d33729b /libjava/classpath/javax | |
| parent | d60e444fad90238f8e6abeac34f510eec0f46308 (diff) | |
| download | ppe42-gcc-36007dcde41266749b957d391bf5a146e912b5eb.tar.gz ppe42-gcc-36007dcde41266749b957d391bf5a146e912b5eb.zip | |
2007-02-14 Gary Benson <gbenson@redhat.com>
* javax/management/ObjectName.java
(toString): Return this item's canonical name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121989 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/javax')
| -rw-r--r-- | libjava/classpath/javax/management/ObjectName.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libjava/classpath/javax/management/ObjectName.java b/libjava/classpath/javax/management/ObjectName.java index 573b98488c1..0b18c012516 100644 --- a/libjava/classpath/javax/management/ObjectName.java +++ b/libjava/classpath/javax/management/ObjectName.java @@ -1,5 +1,5 @@ /* 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. @@ -716,19 +716,18 @@ public class ObjectName /** * 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 - * from this method. + * + * <p>The format is unspecified beyond that equivalent object + * 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. */ public String toString() { - return getClass().toString() + - "[domain = " + domain + - ",properties = " + properties + - ",propertyPattern = " + propertyPattern + - "]"; + return getCanonicalName(); } /** |

