[ http://issues.apache.org/jira/browse/WSCOMMONS-44?page=all ]
Rich Scheuerle resolved WSCOMMONS-44:
-------------------------------------
Resolution: Fixed
> OMNamespaceImpl equals method returns true when uri different
> -------------------------------------------------------------
>
> Key: WSCOMMONS-44
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-44
> Project: WS-Commons
> Type: Bug
> Components: AXIOM
> Environment: Windows XP SP2
> Reporter: Brent Ulbricht
> Assignee: Rich Scheuerle
> Attachments: patch.txt
>
> The OMNamespace equals method has the following line for the comparison of
> the uri:
> return (((prefix == null) && (this.prefix == null)) ||
> ((prefix != null) && prefix.equals(this.prefix))) &&
> uri.equals(uri);
> The equals method returns true even though the uri values are different.
> OMNamespaceImpl omNsImpl =
> new OMNamespaceImpl("http://www.w3.org/XML/1998/namespace",
> "xml");
> assertTrue(!omNsImpl.equals("http://www.w3.org/XML/2001/namespace",
> "xml"));
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]