Fix: javax.xml.XMLEventReader produces incorrect START_DOCUMENT event
Marius Volkhart
Marius at volkhart.com
Sat Nov 7 19:11:39 UTC 2020
Hello,
I've submitted a PR https://github.com/openjdk/jdk/pull/1056 for what I
believe to be a bug I found in the javax.xml module. An issue for this
behavior does not exist in the bug tracker.
The default implementation of javax.xml.stream.XMLEventReader produces a
StartDocument event that always indicates that the "standalone" attribute
was set in the original document.
The root cause of this is 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.
--
Cheers,
Marius Volkhart
More information about the core-libs-dev
mailing list