You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by er...@locus.apache.org on 2000/11/07 02:55:29 UTC

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

ericye      00/11/06 17:55:26

  Modified:    java/src/org/apache/xerces/impl/validation Tag: xerces_j_2
                        Grammar.java
  Log:
  bug fix in setNotationDecl and setEntityDecl.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.23  +5 -5      xml-xerces/java/src/org/apache/xerces/impl/validation/Attic/Grammar.java
  
  Index: Grammar.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/validation/Attic/Grammar.java,v
  retrieving revision 1.1.2.22
  retrieving revision 1.1.2.23
  diff -u -r1.1.2.22 -r1.1.2.23
  --- Grammar.java	2000/11/03 22:59:51	1.1.2.22
  +++ Grammar.java	2000/11/07 01:55:24	1.1.2.23
  @@ -80,7 +80,7 @@
    * @author Jeffrey Rodriguez, ibm
    * @author Eric Ye, ibm
    *
  - * @version $Id: Grammar.java,v 1.1.2.22 2000/11/03 22:59:51 ericye Exp $
  + * @version $Id: Grammar.java,v 1.1.2.23 2000/11/07 01:55:24 ericye Exp $
    */
   public class Grammar {
   
  @@ -1051,8 +1051,8 @@
      }
   
      protected void setEntityDecl(int entityDeclIndex, XMLEntityDecl entityDecl) {
  -       int chunk = fEntityCount >> CHUNK_SHIFT;
  -       int index = fEntityCount & CHUNK_MASK;
  +       int chunk = entityDeclIndex >> CHUNK_SHIFT;
  +       int index = entityDeclIndex & CHUNK_MASK;
   
          fEntityName[chunk][index] = entityDecl.name;
          fEntityValue[chunk][index] = null;
  @@ -1074,8 +1074,8 @@
      }
   
      protected void setNotationDecl(int notationDeclIndex, XMLNotationDecl notationDecl) {
  -       int chunk = fNotationCount >> CHUNK_SHIFT;
  -       int index = fNotationCount & CHUNK_MASK;
  +       int chunk = notationDeclIndex >> CHUNK_SHIFT;
  +       int index = notationDeclIndex & CHUNK_MASK;
   
          fNotationName[chunk][index] = notationDecl.name;
          fNotationPublicId[chunk][index] = notationDecl.publicId;