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/09/11 20:21:14 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/validators/common Grammar.java
ericye 00/09/11 11:21:14
Modified: java/src/org/apache/xerces/validators/common Grammar.java
Log:
fix a bug in method ContentSpecTree().
Revision Changes Path
1.14 +4 -4 xml-xerces/java/src/org/apache/xerces/validators/common/Grammar.java
Index: Grammar.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/validators/common/Grammar.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Grammar.java 2000/08/10 02:56:32 1.13
+++ Grammar.java 2000/09/11 18:21:13 1.14
@@ -69,7 +69,7 @@
/**
- * @version $Id: Grammar.java,v 1.13 2000/08/10 02:56:32 ericye Exp $
+ * @version $Id: Grammar.java,v 1.14 2000/09/11 18:21:13 ericye Exp $
*/
public class Grammar
implements XMLContentSpec.Provider {
@@ -746,9 +746,9 @@
// Handle any and leaf nodes
getContentSpec( contentSpecIndex, contentSpec);
if (contentSpec.type == XMLContentSpec.CONTENTSPECNODE_LEAF ||
- contentSpec.type == XMLContentSpec.CONTENTSPECNODE_ANY ||
- contentSpec.type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL ||
- contentSpec.type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) {
+ (contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY ||
+ (contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL ||
+ (contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) {
// resize arrays, if needed
if (children.length == children.qname.length) {