Inspection of code showed probable error
----------------------------------------

         Key: XERCESC-1333
         URL: http://issues.apache.org/jira/browse/XERCESC-1333
     Project: Xerces-C++
        Type: Bug
  Components: Validating Parser (Schema) (Xerces 1.5 or up only)  
 Environment: not relevant
    Reporter: Michael Sweet
    Priority: Minor


in file        
xerces-c-src_2_6_0/src/xercesc/validators/schema/ComplexTypeInfo.cpp

in function    ComplexTypeInfo::checkUniqueParticleAttribution(...)

lines 527 to 533:

read as:

    if (fContentSpec && !fContentModel)
    {
        fContentModel = makeContentModel(true);
        if (fContentModel) {
            fContentModel->checkUniqueParticleAttribution(pGrammar, 
pGrammarResolver, pStringPool, pValidator, fContentSpecOrgURI, fTypeLocalName);
        }
    }

but should *probably* read as:

    if (fContentSpec && !fContentModel)
    fContentModel = makeContentModel(true);
    if (fContentModel) {
        fContentModel->checkUniqueParticleAttribution(pGrammar, 
pGrammarResolver, pStringPool, pValidator, fContentSpecOrgURI, fTypeLocalName);
    }


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to