https://issues.apache.org/bugzilla/show_bug.cgi?id=56814
--- Comment #6 from Uwe Schindler (ASF) <[email protected]> --- Thanks! Looks fine. The problem with DocumentBuilderFactory is more that it is not thread safe if you change properties. But if you have a correctly conbfigured factory and just call newDocumentBuilder() it should be thread safe. BTW: The warnings about missing thread safety were removed from Javadocs after Java 1.5. So I assume that newDocumentBuilder are thread safe. If you canr, wrap the newDocumentBuilder with a static synchronized block, that would be most safe: "static synchronized getDocumentBuilder()" (in both SAXHelper and the other factory class). Since Java 1.6 the synchronized does not matter at all if there is no real concurrency involved (optimized away by Hotspot). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
