You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2005/10/21 05:33:49 UTC

[jira] Resolved: (XERCESJ-1106) adoptNode fails when adopting deferred nodes

     [ http://issues.apache.org/jira/browse/XERCESJ-1106?page=all ]
     
Michael Glavassevich resolved XERCESJ-1106:
-------------------------------------------

    Resolution: Fixed

Before adopting a node from a deferred DOM to a non-deferred DOM we first undefer the children of the node. We accomplish this by doing a non-recursive walk over the child/sibling chains but missed synchronizing attribute nodes since they are not children of elements. Should be fixed now in SVN. Thanks for reporting.

> adoptNode fails when adopting deferred nodes
> --------------------------------------------
>
>          Key: XERCESJ-1106
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1106
>      Project: Xerces2-J
>         Type: Bug
>   Components: DOM
>     Versions: 2.7.1
>  Environment: First seen in a webapp running in Tomcat 5.5 on JDK 1.5 on CentOS(Linux) 4.  Xerces jars explicitly endorsed
> Replicated on JDK 1.5 on Windows XP, again, Xerces jar's explicitly endorsed
>     Reporter: Chad La Joie
>     Assignee: Michael Glavassevich
>  Attachments: XercesAdoptNodeBugTest.java
>
> When a Document attempts to adopt a node, via adoptNode(Node) and that node is a deferred attribute node, or a deferred attribute node is encountered somewhere in the tree, a class cast exception is raised.  Test case to follow.

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