You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "James Thomas Moughan (JIRA)" <xe...@xml.apache.org> on 2015/08/07 11:32:45 UTC
[jira] [Created] (XERCESJ-1663) Thread-unsafe lazy initialization
in XSAttributeGroupDecl
James Thomas Moughan created XERCESJ-1663:
---------------------------------------------
Summary: 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org