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

Severin Gehwolf sgehwolf at openjdk.java.net
Thu Dec 3 14:47:04 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.

@MariusVolkhart I'll work with you getting the fix in and get the test running using jtreg. Give me a few moments to reproduce.

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

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


More information about the core-libs-dev mailing list