[ http://issues.apache.org/jira/browse/XERCESC-1333?page=history ]
Khaled Noaman resolved XERCESC-1333:
------------------------------------
Resolution: Won't Fix
This is the intended behavior. A unique particle attribution (UPA) check is
performed when a schema is processed and and the full schema validation feature
is enabled. The idea is to have the unique particle attribution check done only
once per grammar. Since a UPA check alters the state of the grammar (i.e.
changes the content model of complex types), we wanted to make sure that we
won't alter the state of the grammar when it's cached and used in multiple
threads.
> 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]