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 2002/07/04 19:57:53 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/models CMBuilder.java
sandygao 2002/07/04 10:57:52
Modified: java/src/org/apache/xerces/impl/xs/models CMBuilder.java
Log:
Fixing bug [10474]: min/maxOccurs doesn't work properly.
When building the syntax tree, we need to copy the leaf nodes.
Revision Changes Path
1.11 +2 -2 xml-xerces/java/src/org/apache/xerces/impl/xs/models/CMBuilder.java
Index: CMBuilder.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/models/CMBuilder.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- CMBuilder.java 27 May 2002 23:05:42 -0000 1.10
+++ CMBuilder.java 4 Jul 2002 17:57:52 -0000 1.11
@@ -283,7 +283,7 @@
}
for (int i=minOccurs; i<maxOccurs-1; i++) {
nodeRet = new XSCMBinOp(XSModelGroupImpl.MODELGROUP_SEQUENCE,
- nodeRet, node);
+ nodeRet, copyNode(node));
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org