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/02/18 20:34:40 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom DeferredDocumentImpl.java
elena 02/02/18 11:34:40
Modified: java/src/org/apache/xerces/dom DeferredDocumentImpl.java
Log:
Bug fix http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6482.
Revision Changes Path
1.42 +5 -5 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.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- DeferredDocumentImpl.java 29 Jan 2002 01:15:07 -0000 1.41
+++ DeferredDocumentImpl.java 18 Feb 2002 19:34:39 -0000 1.42
@@ -74,7 +74,7 @@
* which associates them with the Document within whose context they
* were created.
*
- * @version $Id: DeferredDocumentImpl.java,v 1.41 2002/01/29 01:15:07 lehors Exp $
+ * @version $Id: DeferredDocumentImpl.java,v 1.42 2002/02/18 19:34:39 elena Exp $
* @since PR-DOM-Level-1-19980818.
*/
public class DeferredDocumentImpl
@@ -1006,7 +1006,7 @@
if (nodeIndex == -1) {
return null;
}
-
+
int chunk = nodeIndex >> CHUNK_SHIFT;
int index = nodeIndex & CHUNK_MASK;
String value = free ? clearChunkValue(fNodeValue, chunk, index)
@@ -1014,7 +1014,7 @@
if (value == null) {
return null;
}
-
+
int type = getChunkIndex(fNodeType, chunk, index);
if (type == Node.TEXT_NODE) {
int prevSib = getRealPrevSibling(nodeIndex);
@@ -1051,11 +1051,11 @@
}
}
else if (type == Node.CDATA_SECTION_NODE) {
- // append data that is stored in fNodeValue
- fBufferStr.append(value);
// find if any other data stored in children
int child = getLastChild(nodeIndex, false);
if (child !=-1) {
+ // append data that is stored in fNodeValue
+ fBufferStr.append(value);
while (child !=-1) {
// go in reverse order: find last child, then
// its previous sibling, etc
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org