sandygao 2003/03/13 08:56:27 Modified: java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java Log: Fixing bug 17885: sometimes the member type definition in PSVI is not null when the type definition is not a simple type with union variety. Revision Changes Path 1.34 +6 -2 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.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- XSSimpleTypeDecl.java 17 Feb 2003 22:14:38 -0000 1.33 +++ XSSimpleTypeDecl.java 13 Mar 2003 16:56:26 -0000 1.34 @@ -2,7 +2,7 @@ * The Apache Software License, Version 1.1 * * - * Copyright (c) 2001, 2002 The Apache Software Foundation. All rights + * Copyright (c) 2001-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -1300,6 +1300,8 @@ if (validatedInfo == null) validatedInfo = new ValidatedInfo(); + else + validatedInfo.reset(); // first normalize string value, and convert it to actual value boolean needNormalize = context==null||context.needToNormalize(); @@ -1321,6 +1323,8 @@ if (validatedInfo == null) validatedInfo = new ValidatedInfo(); + else + validatedInfo.reset(); // 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]