You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2008/07/11 22:10:44 UTC
svn commit: r676065 - in
/xerces/java/trunk/src/org/apache/xerces/impl/dv/xs: BaseDVFactory.java
SchemaDVFactoryImpl.java
Author: mrglavas
Date: Fri Jul 11 13:10:44 2008
New Revision: 676065
URL: http://svn.apache.org/viewvc?rev=676065&view=rev
Log:
Fixing a bug in the construction of the simple type hierarchy. The base type of xs:negativeInteger is xs:nonPositiveInteger not xs:integer.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/BaseDVFactory.java
xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/BaseDVFactory.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/BaseDVFactory.java?rev=676065&r1=676064&r2=676065&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/BaseDVFactory.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/BaseDVFactory.java Fri Jul 11 13:10:44 2008
@@ -184,7 +184,7 @@
types.put(NONPOSITIVEINTEGER, nonPositiveDV);
facets.maxInclusive = "-1";
- XSSimpleTypeDecl negativeDV = new XSSimpleTypeDecl(integerDV, NEGATIVEINTEGER, URI_SCHEMAFORSCHEMA, (short)0, false, null, XSConstants.NEGATIVEINTEGER_DT);
+ XSSimpleTypeDecl negativeDV = new XSSimpleTypeDecl(nonPositiveDV, NEGATIVEINTEGER, URI_SCHEMAFORSCHEMA, (short)0, false, null, XSConstants.NEGATIVEINTEGER_DT);
negativeDV.applyFacets1(facets , XSSimpleType.FACET_MAXINCLUSIVE, (short)0);
types.put(NEGATIVEINTEGER, negativeDV);
Modified: xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java?rev=676065&r1=676064&r2=676065&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java Fri Jul 11 13:10:44 2008
@@ -244,7 +244,7 @@
fBuiltInTypes.put(NONPOSITIVEINTEGER, nonPositiveDV);
facets.maxInclusive = "-1";
- XSSimpleTypeDecl negativeDV = new XSSimpleTypeDecl(integerDV, NEGATIVEINTEGER, URI_SCHEMAFORSCHEMA, (short)0, false, null, XSConstants.NEGATIVEINTEGER_DT);
+ XSSimpleTypeDecl negativeDV = new XSSimpleTypeDecl(nonPositiveDV, NEGATIVEINTEGER, URI_SCHEMAFORSCHEMA, (short)0, false, null, XSConstants.NEGATIVEINTEGER_DT);
negativeDV.applyFacets1(facets , XSSimpleType.FACET_MAXINCLUSIVE, (short)0);
fBuiltInTypes.put(NEGATIVEINTEGER, negativeDV);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org