You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@locus.apache.org on 2000/12/01 05:18:19 UTC

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

andyc       00/11/30 20:18:18

  Modified:    java/src/org/apache/xerces/impl Tag: xerces_j_2
                        XMLEntityManager.java
  Log:
  NegativeArraySizeException was being thrown when creating the
  symbol for the symbols in scanQName when the qualified name
  crossed a buffer boundary. On loading a new buffer segment,
  the index of the ':' in the qualified name needed to be
  updated -- since the name is relocated to the beginning of
  the buffer.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.71  +4 -1      xml-xerces/java/src/org/apache/xerces/impl/Attic/XMLEntityManager.java
  
  Index: XMLEntityManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/Attic/XMLEntityManager.java,v
  retrieving revision 1.1.2.70
  retrieving revision 1.1.2.71
  diff -u -r1.1.2.70 -r1.1.2.71
  --- XMLEntityManager.java	2000/11/20 23:14:46	1.1.2.70
  +++ XMLEntityManager.java	2000/12/01 04:18:17	1.1.2.71
  @@ -116,7 +116,7 @@
    * @author Andy Clark, IBM
    * @author Arnaud  Le Hors, IBM
    *
  - * @version $Id: XMLEntityManager.java,v 1.1.2.70 2000/11/20 23:14:46 lehors Exp $
  + * @version $Id: XMLEntityManager.java,v 1.1.2.71 2000/12/01 04:18:17 andyc Exp $
    */
   public class XMLEntityManager
       implements XMLComponent {
  @@ -1921,6 +1921,9 @@
                           else {
                               System.arraycopy(fCurrentEntity.ch, offset,
                                                fCurrentEntity.ch, 0, length);
  +                        }
  +                        if (index != -1) {
  +                            index = index - offset;
                           }
                           offset = 0;
                           if (load(length, false)) {