You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by xe...@xml.apache.org on 2004/10/15 13:22:51 UTC

[jira] Resolved: (XERCESC-1234) XSTypeDefinition::derivedFromType hangs, "anyType" is its own base type

Message:

   The following issue has been resolved as FIXED.

   Resolver: cargilld
       Date: Fri, 15 Oct 2004 4:22 AM

Hi David,
I just checked in a fix for this problem.  Please verify.  Thanks.
David
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1234

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1234
    Summary: XSTypeDefinition::derivedFromType hangs, "anyType" is its own base type
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: FIXED

    Project: Xerces-C++
 Components: 
             Validating Parser (Schema) (Xerces 1.5 or up only)
   Versions:
             2.5.0

   Assignee: 
   Reporter: David J. Behnke

    Created: Thu, 24 Jun 2004 10:44 AM
    Updated: Fri, 15 Oct 2004 4:22 AM
Environment: Windows Visual C++ 6.0-

Description:
I'm using Xerces-C++ 2.5.0 in a MS Visual C++ 6.0 project on a Windows 2000 box.  I use XercesDOMParser::loadGrammar to preparse my schema, then I use XMLGrammarPool::getXSModel to get the model and iterate through the XSTypeDefinition objects to check for types derived from certain key base types.  My problem is that my base types are derived from "anyType" which has a pointer to itself as its base type member.  Thus the loop in XSComplexTypeDefinition::derivedFromType:

    while (type && (type != ancestorType))
    {
        type = type->getBaseType();
    }

gets stuck as soon as it gets to the "anyType" ancestor and loops forever whenever the type being checked is NOT derived from the given ancestorType.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org