axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Greif" <>
Subject Re: class QName of jaxrpc, Axis implementation
Date Fri, 18 Apr 2003 17:06:13 GMT
Notice in the QName constructor that the local part and the namespaceURI are
interned (using String.intern()), which means there is one canonical copy of
each String.  Two QNames can thus be compared for equality using == on the

----- Original Message -----
From: "Tevoi Andrea" <>
To: <>
Sent: Friday, April 18, 2003 8:41 AM
Subject: class QName of jaxrpc, Axis implementation

Hi all,
in apiDocs the class javax.xml.namespace.QName is said that implements
equals method calling equals method on String namespaceURI and localPart,
but looking at source of QName class I've seen that this is false.

portion of source:
if ((namespaceURI == ((QName) obj).namespaceURI)
                && (localPart == ((QName) obj).localPart)) {
            return true;

View raw message