You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Brent Ulbricht (JIRA)" <ji...@apache.org> on 2006/06/21 14:52:31 UTC

[jira] Created: (WSCOMMONS-44) OMNamespaceImpl equals method returns true when uri different

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


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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-44) OMNamespaceImpl equals method returns true when uri different

Posted by "Brent Ulbricht (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-44?page=all ]

Brent Ulbricht updated WSCOMMONS-44:
------------------------------------

    Attachment: patch.txt

I have submitted a test and a proposed patch to the OMNamespaceImpl.java class.

> 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
>  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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Assigned: (WSCOMMONS-44) OMNamespaceImpl equals method returns true when uri different

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-44?page=all ]

Rich Scheuerle reassigned WSCOMMONS-44:
---------------------------------------

    Assign To: Rich Scheuerle

Brent is the lead of the IBM WebServices Test team.

His team is analyzing the Axis2 and related projects.  

The patch fixes a problem in OMNamespace.  Brent is also adding a test to validate that OMNamespace remains an immuntable object.

I will be adding this patch later today.

Thanks,
scheu

> 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-44) OMNamespaceImpl equals method returns true when uri different

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org