<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div dir="ltr">
<div style=""></div>
<div style="">
<div dir="ltr">The XMLOutputFactoryImpl does not allow to share the writer instances:</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><a rel="noreferrer noopener" href="https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLOutputFactoryImpl.java#L167" style="">https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLOutputFactoryImpl.java#L167</a><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">So this is initialized and set to false:</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><a rel="noreferrer noopener" href="https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLOutputFactoryImpl.java#L62" style="">https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLOutputFactoryImpl.java#L62</a><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">However when you query the property from the PropertyManager it’s default seems to be true:</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><a rel="noreferrer noopener" href="https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/PropertyManager.java#L154" style="">https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/PropertyManager.java#L154</a><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Should this be aligned to Boolean.FALSE? Or maybe complete remove the shared instance code?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I also wonder is it expected to instantiate the Impl directly: there is no programmatic api way to request the default impl unless you define global config or system property (and this also required the impl class name so you can as well create
 a instance reflectively).</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Gruss</div>
<div dir="ltr">Bernd</div>
<div id="ms-outlook-mobile-signature">
<div style="direction:ltr">-- </div>
<div style="direction:ltr">http://bernd.eckenfels.net</div>
</div>
</div>
</div>
</body>
</html>