[ 
https://issues.apache.org/jira/browse/SLING-12529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seifert updated SLING-12529:
-----------------------------------
    Description: 
{{javax.xml.parsers.DocumentBuilderFactory}} and 
{{javax.xml.xpath.XPathFactory}} are not thread-safe accoring the javadocs 
(although 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.

  was:
{{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.


> 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
>            Priority: Major
>             Fix For: Testing OSGi Mock 3.5.2
>
>
> {{javax.xml.parsers.DocumentBuilderFactory}} and 
> {{javax.xml.xpath.XPathFactory}} are not thread-safe accoring the javadocs 
> (although 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