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 "Chad La Joie (JIRA)" <xe...@xml.apache.org> on 2005/10/20 18:08:57 UTC
[jira] Created: (XERCESJ-1106) adoptNode fails when adopting deferred nodes
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
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
[jira] Resolved: (XERCESJ-1106) adoptNode fails when adopting deferred nodes
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ 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
[jira] Updated: (XERCESJ-1106) adoptNode fails when adopting
deferred nodes
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1106?page=all ]
Michael Glavassevich updated XERCESJ-1106:
------------------------------------------
Fix Version: 2.8.0
> 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 (Level 3 Core)
> 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
> Fix For: 2.8.0
> 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
[jira] Updated: (XERCESJ-1106) adoptNode fails when adopting deferred nodes
Posted by "Chad La Joie (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1106?page=all ]
Chad La Joie updated XERCESJ-1106:
----------------------------------
Attachment: XercesAdoptNodeBugTest.java
Test case to reproduce the bug
> 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
> 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
[jira] Assigned: (XERCESJ-1106) adoptNode fails when adopting deferred nodes
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1106?page=all ]
Michael Glavassevich reassigned XERCESJ-1106:
---------------------------------------------
Assign To: Michael Glavassevich
> 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