Stefan Seifert created SLING-12529:
--------------------------------------

             Summary: OSGI Mock: DocumentBuilderFactory and XPathFactory are 
not thread-safe
                 Key: SLING-12529
                 URL: https://issues.apache.org/jira/browse/SLING-12529
             Project: Sling
          Issue Type: Bug
          Components: Testing
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
             Fix For: Testing OSGi Mock 3.5.2


{{javax.xml.parsers.DocumentBuilderFactory}} and 
{{javax.xml.xpath.XPathFactory}} are not thread-safe accoring the javadocs 
(also for {{javax.xml.parsers.DocumentBuilderFactory}} that is no longer that 
explicit marked as it was in previous java version - but i assume it's still 
not thread-safe).

so don't cache those factory instances statically.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to