You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2001/10/22 15:37:27 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/v2 SchemaGrammar.java
sandygao 01/10/22 06:37:27
Modified: java/src/org/apache/xerces/impl/v2 SchemaGrammar.java
Log:
For the grammar of schema namespace, we never need to add decls to the global hashtables other than the built-in types. So I initialized the size of all the other hashtables to 0. But it turned out that it would cause some exceptions in get() method. So I changed the size to 1.
Revision Changes Path
1.28 +7 -7 xml-xerces/java/src/org/apache/xerces/impl/v2/SchemaGrammar.java
Index: SchemaGrammar.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/v2/SchemaGrammar.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- SchemaGrammar.java 2001/10/17 21:46:09 1.27
+++ SchemaGrammar.java 2001/10/22 13:37:27 1.28
@@ -71,7 +71,7 @@
* @author Sandy Gao, IBM
* @author Elena Litani, IBM
*
- * @version $Id: SchemaGrammar.java,v 1.27 2001/10/17 21:46:09 sandygao Exp $
+ * @version $Id: SchemaGrammar.java,v 1.28 2001/10/22 13:37:27 sandygao Exp $
*/
public class SchemaGrammar {
@@ -144,12 +144,12 @@
// In case we ever see an error, Runtime exception will be thrown
// since this is an implementation failure.
- fGlobalAttrDecls = new SymbolHash(0);
- fGlobalAttrGrpDecls = new SymbolHash(0);
- fGlobalElemDecls = new SymbolHash(0);
- fGlobalGroupDecls = new SymbolHash(0);
- fGlobalNotationDecls = new SymbolHash(0);
- fGlobalIDConstraintDecls = new SymbolHash(0);
+ fGlobalAttrDecls = new SymbolHash(1);
+ fGlobalAttrGrpDecls = new SymbolHash(1);
+ fGlobalElemDecls = new SymbolHash(1);
+ fGlobalGroupDecls = new SymbolHash(1);
+ fGlobalNotationDecls = new SymbolHash(1);
+ fGlobalIDConstraintDecls = new SymbolHash(1);
// set the size of type SymbolHash to double the number of types need
// to be created. which should be the most effecient number.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org