You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2002/04/26 20:32:57 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom DeferredDocumentImpl.java
elena 02/04/26 11:32:57
Modified: java/src/org/apache/xerces/dom DeferredDocumentImpl.java
Log:
Applied patch from Henry Zongaro to fix ClassCastException in
org.apache.xerces.dom.DeferredAttrNSImpl on NodeList.getLength().
Revision Changes Path
1.44 +4 -2 xml-xerces/java/src/org/apache/xerces/dom/DeferredDocumentImpl.java
Index: DeferredDocumentImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DeferredDocumentImpl.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- DeferredDocumentImpl.java 12 Apr 2002 01:13:52 -0000 1.43
+++ DeferredDocumentImpl.java 26 Apr 2002 18:32:57 -0000 1.44
@@ -74,7 +74,7 @@
* which associates them with the Document within whose context they
* were created.
*
- * @version $Id: DeferredDocumentImpl.java,v 1.43 2002/04/12 01:13:52 lehors Exp $
+ * @version $Id: DeferredDocumentImpl.java,v 1.44 2002/04/26 18:32:57 elena Exp $
* @since PR-DOM-Level-1-19980818.
*/
public class DeferredDocumentImpl
@@ -806,7 +806,9 @@
nchunk = index >> CHUNK_SHIFT;
nindex = index & CHUNK_MASK;
- if (getChunkValue(fNodeName, nchunk, nindex) == elementName) {
+ if (getChunkIndex(fNodeType, nchunk, nindex) ==
+ NodeImpl.ELEMENT_DEFINITION_NODE
+ && getChunkValue(fNodeName, nchunk, nindex) == elementName) {
return index;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org