RFR: 8256515: javax.xml.XMLEventReader produces incorrect START_DOCUMENT event

Marius Volkhart github.com+1709517+mariusvolkhart at openjdk.java.net
Thu Dec 3 14:47:05 UTC 2020


On Wed, 4 Nov 2020 14:01:53 GMT, Marius Volkhart <github.com+1709517+MariusVolkhart at openjdk.org> wrote:

> The default implementation of javax.xml.stream.XMLEventReader produced a StartDocument event that always indicated that the "standalone" attribute was set.
> 
> The root cause of this was that the com.sun.xml.internal.stream.events.XMLEventAllocatorImpl always set the "standalone" attribute, rather than asking streamReader.standaloneSet() before setting the property of the StartDocumentEvent being created.

test/jdk/javax/xml/stream/XmlInputFactoryTest.java line 12:

> 10: import static org.testng.Assert.assertTrue;
> 11: 
> 12: public class XmlInputFactoryTest {

This test is written correctly for regular TestNG, but I don't know if it's "right" for jtreg. I'm happy to make any changes necessary.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1056


More information about the core-libs-dev mailing list