mrglavas 2003/12/18 19:36:44
Modified: java/src/org/apache/xerces/impl XML11EntityScanner.java
Log:
Fixing a bug in the last commit. When we're scanning a long
QName and we need to resize or copy down, we also need to
adjust the index of the ':' if we found one.
Revision Changes Path
1.11 +4 -1
xml-xerces/java/src/org/apache/xerces/impl/XML11EntityScanner.java
Index: XML11EntityScanner.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XML11EntityScanner.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XML11EntityScanner.java 16 Dec 2003 21:37:10 -0000 1.10
+++ XML11EntityScanner.java 19 Dec 2003 03:36:44 -0000 1.11
@@ -674,6 +674,9 @@
System.arraycopy(fCurrentEntity.ch, offset,
fCurrentEntity.ch, 0, length);
}
+ if (index != -1) {
+ index = index - offset;
+ }
offset = 0;
if (load(length, false)) {
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]