From c8a90e81637883d0ca883b094962ef8a738e4220 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Thu, 15 Feb 2007 09:02:38 +0000 Subject: 2007-02-14 Gary Benson * javax/management/ObjectName.java (toString): Return this item's canonical name. From-SVN: r121989 --- libjava/classpath/javax/management/ObjectName.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'libjava/classpath/javax/management/ObjectName.java') diff --git a/libjava/classpath/javax/management/ObjectName.java b/libjava/classpath/javax/management/ObjectName.java index 573b984..0b18c01 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. + * + *

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(); } /** -- cgit v1.1