cargilld 2004/10/15 14:32:54 Modified: c/src/xercesc/framework/psvi XSSimpleTypeDefinition.cpp Log: Fix similar problem to that in jira bug 1234. Infinite loop in XSSimpleTypeDefinition::derviedFromType. Revision Changes Path 1.10 +7 -1 xml-xerces/c/src/xercesc/framework/psvi/XSSimpleTypeDefinition.cpp Index: XSSimpleTypeDefinition.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSSimpleTypeDefinition.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- XSSimpleTypeDefinition.cpp 8 Sep 2004 13:56:09 -0000 1.9 +++ XSSimpleTypeDefinition.cpp 15 Oct 2004 21:32:54 -0000 1.10 @@ -16,6 +16,9 @@ /* * $Log$ + * Revision 1.10 2004/10/15 21:32:54 cargilld + * Fix similar problem to that in jira bug 1234. Infinite loop in XSSimpleTypeDefinition::derviedFromType. + * * Revision 1.9 2004/09/08 13:56:09 peiyongz * Apache License Version 2.0 * @@ -232,9 +235,12 @@ return false; XSTypeDefinition* type = this; + XSTypeDefinition* lastType = 0; // anysimple type has a base type of anytype + // anytype has a basetype of anytype so will have infinite loop... - while (type && (type != ancestorType)) + while (type && (type != ancestorType) && (type != lastType)) { + lastType = type; type = type->getBaseType(); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]