You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2003/12/19 04:36:44 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl XML11EntityScanner.java

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