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 "Toshiro Takase (JIRA)" <ji...@apache.org> on 2006/09/12 10:42:22 UTC

[jira] Created: (WSCOMMONS-93) OMNode.insertSiblingBefore() for the same node instance, breaks the tree in silence.

OMNode.insertSiblingBefore() for the same node instance, breaks the tree in silence.
------------------------------------------------------------------------------------

                 Key: WSCOMMONS-93
                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-93
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
         Environment: Windows
            Reporter: Toshiro Takase
            Priority: Critical


OMNode a = .....
OMNode b = a;
b.insertSiblingBefore(a);

After this, the next sibling of "a" is "a".
Traversing the tree including this node is infinite loop.....
This is very hard to debug. :(

There are 2 options for this, I think.
(1) Do nothing. It seems that, in DOM, parent.insertBefore(a, a) does nothing.
(2) Throw an exception.


-- 
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-93) OMNode.insertSiblingBefore() for the same node instance, breaks the tree in silence.

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

Eran Chinthaka resolved WSCOMMONS-93.
-------------------------------------

    Resolution: Fixed
      Assignee: Eran Chinthaka

Fixed in the latest source tree

> OMNode.insertSiblingBefore() for the same node instance, breaks the tree in silence.
> ------------------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-93
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-93
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Windows
>            Reporter: Toshiro Takase
>         Assigned To: Eran Chinthaka
>            Priority: Critical
>
> OMNode a = .....
> OMNode b = a;
> b.insertSiblingBefore(a);
> After this, the next sibling of "a" is "a".
> Traversing the tree including this node is infinite loop.....
> This is very hard to debug. :(
> There are 2 options for this, I think.
> (1) Do nothing. It seems that, in DOM, parent.insertBefore(a, a) does nothing.
> (2) Throw an exception.

-- 
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