--- old/test/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java 2016-08-30 21:48:17.585013320 +0300 +++ new/test/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java 2016-08-30 21:48:17.505013243 +0300 @@ -80,7 +80,12 @@ Source xslsrc = new StreamSource(new StringReader(xsl)); // Create factory and transformer - TransformerFactory tf = TransformerFactory.newInstance(); + TransformerFactory tf; + // newTransformer() method doc states that different transformer + // factories can be used concurrently by different Threads. + synchronized (TransformerFactory.class) { + tf = TransformerFactory.newInstance(); + } Transformer t = tf.newTransformer(xslsrc); // Set URI Resolver to return the newly constructed xml