[
https://issues.apache.org/jira/browse/XERCESJ-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Thomas Moughan updated XERCESJ-1663:
------------------------------------------
Attachment: xerces-attribute-group-threadsafety.txt
> Thread-unsafe lazy initialization in XSAttributeGroupDecl
> ---------------------------------------------------------
>
> Key: XERCESJ-1663
> URL: https://issues.apache.org/jira/browse/XERCESJ-1663
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (Level 3 Core)
> Affects Versions: 2.11.0
> Reporter: James Thomas Moughan
> Attachments: xerces-attribute-group-threadsafety.txt
>
>
> we have an application that parses a large number of XML files in different
> threads using shared schema grammars and a threadsafe gramamar cache. Our
> understanding is that this is intended to be threadsafe. Our tests
> encountered nondeterministic schema validation failures related to unexpected
> attributes and the failures were traced to lazy initialization of the field
> fAttrUses in XSAttributeGroupDecl.getAttributeUses.
> We've fixed this issue internally and have a patch ready to submit, which
> I'll attach to the issue.
> If what we're doing isn't intended to be threadsafe (I haven't been able to
> find much information on Xerces thread safety) then knowing that would be
> useful.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]