You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (Jira)" <ji...@apache.org> on 2024/12/09 16:28:00 UTC

[jira] [Created] (SLING-12529) OSGI Mock: DocumentBuilderFactory and XPathFactory are not thread-safe

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)