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/04/23 00:43:24 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs XSParticleDecl.java
sandygao 02/04/22 15:43:24
Modified: java/src/org/apache/xerces/impl/xs XSParticleDecl.java
Log:
Bug in calculating effective total ranges.
Revision Changes Path
1.6 +3 -3 xml-xerces/java/src/org/apache/xerces/impl/xs/XSParticleDecl.java
Index: XSParticleDecl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XSParticleDecl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XSParticleDecl.java 3 Apr 2002 23:48:26 -0000 1.5
+++ XSParticleDecl.java 22 Apr 2002 22:43:24 -0000 1.6
@@ -62,7 +62,7 @@
*
* @author Sandy Gao, IBM
*
- * @version $Id: XSParticleDecl.java,v 1.5 2002/04/03 23:48:26 elena Exp $
+ * @version $Id: XSParticleDecl.java,v 1.6 2002/04/22 22:43:24 sandygao Exp $
*/
public class XSParticleDecl {
@@ -199,7 +199,7 @@
if (fromLeft == SchemaSymbols.OCCURRENCE_UNBOUNDED)
return SchemaSymbols.OCCURRENCE_UNBOUNDED;
if (fOtherValue != null) {
- int fromRight = ((XSParticleDecl)fValue).maxEffectiveTotalRange();
+ int fromRight = ((XSParticleDecl)fOtherValue).maxEffectiveTotalRange();
if (fromRight == SchemaSymbols.OCCURRENCE_UNBOUNDED)
return SchemaSymbols.OCCURRENCE_UNBOUNDED;
fromLeft += fromRight;
@@ -216,7 +216,7 @@
if (fromLeft == SchemaSymbols.OCCURRENCE_UNBOUNDED)
return SchemaSymbols.OCCURRENCE_UNBOUNDED;
if (fOtherValue != null) {
- int fromRight = ((XSParticleDecl)fValue).maxEffectiveTotalRange();
+ int fromRight = ((XSParticleDecl)fOtherValue).maxEffectiveTotalRange();
if (fromRight == SchemaSymbols.OCCURRENCE_UNBOUNDED)
return SchemaSymbols.OCCURRENCE_UNBOUNDED;
if (fromRight < fromLeft)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org