sandygao 2003/03/17 07:00:31
Modified: java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java
Log:
Another bug was introduced when fixing 17885.
Can't reset the content of ValidatedInfo when validate is called, because
the normalizedValue will be used later.
So we should only clear the memberType field.
Revision Changes Path
1.35 +3 -3
xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
Index: XSSimpleTypeDecl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- XSSimpleTypeDecl.java 13 Mar 2003 16:56:26 -0000 1.34
+++ XSSimpleTypeDecl.java 17 Mar 2003 15:00:31 -0000 1.35
@@ -1301,7 +1301,7 @@
if (validatedInfo == null)
validatedInfo = new ValidatedInfo();
else
- validatedInfo.reset();
+ validatedInfo.memberType = null;
// first normalize string value, and convert it to actual value
boolean needNormalize = context==null||context.needToNormalize();
@@ -1324,7 +1324,7 @@
if (validatedInfo == null)
validatedInfo = new ValidatedInfo();
else
- validatedInfo.reset();
+ validatedInfo.memberType = null;
// first normalize string value, and convert it to actual value
boolean needNormalize = context==null||context.needToNormalize();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]