xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eri...@locus.apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/validators/common XMLValidator.java
Date Mon, 08 May 2000 03:03:53 GMT
ericye      00/05/07 20:03:53

  Modified:    java/src/org/apache/xerces/validators/common Tag: schemawork
                        XMLValidator.java
  Log:
  bug fixes, now basic schema validation works, --ericye
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.22  +7 -1      xml-xerces/java/src/org/apache/xerces/validators/common/XMLValidator.java
  
  Index: XMLValidator.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/validators/common/XMLValidator.java,v
  retrieving revision 1.4.2.21
  retrieving revision 1.4.2.22
  diff -u -r1.4.2.21 -r1.4.2.22
  --- XMLValidator.java	2000/05/06 02:22:54	1.4.2.21
  +++ XMLValidator.java	2000/05/08 03:03:50	1.4.2.22
  @@ -104,7 +104,7 @@
   /**
    * This class is the super all-in-one validator used by the parser.
    *
  - * @version $Id: XMLValidator.java,v 1.4.2.21 2000/05/06 02:22:54 ericye Exp $
  + * @version $Id: XMLValidator.java,v 1.4.2.22 2000/05/08 03:03:50 ericye Exp $
    */
   public final class XMLValidator
       implements DefaultEntityHandler.EventHandler,
  @@ -3565,11 +3565,17 @@
           } 
           catch (NullPointerException ex) {
               children = fElementChildren[fElementDepth] = new QName[256];
  +            for (int i=0; i<256; i++) {
  +                children[i] = new QName();
  +            }
               childCount = 0; // should really assert this...
               children[childCount].localpart = -1;
           } 
           catch (ArrayIndexOutOfBoundsException ex) {
               QName[] newChildren = new QName[childCount * 2];
  +            for (int i=0; i<childCount*2; i++) {
  +                children[i] = new QName();
  +            }
               System.arraycopy(children, 0, newChildren, 0, childCount);
               children = fElementChildren[fElementDepth] = newChildren;
               children[childCount].localpart = -1;
  
  
  

Mime
View raw message