-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 15.0.1
-
Component/s: xml
-
b28
-
generic
-
generic
-
Not verified
A DESCRIPTION OF THE PROBLEM :
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.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See tests that are part of PR https://github.com/openjdk/jdk/pull/1056
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See tests that are part of PR https://github.com/openjdk/jdk/pull/1056
---------- BEGIN SOURCE ----------
Automated test is included in PR https://github.com/openjdk/jdk/pull/1056
---------- END SOURCE ----------
FREQUENCY : always
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.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See tests that are part of PR https://github.com/openjdk/jdk/pull/1056
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See tests that are part of PR https://github.com/openjdk/jdk/pull/1056
---------- BEGIN SOURCE ----------
Automated test is included in PR https://github.com/openjdk/jdk/pull/1056
---------- END SOURCE ----------
FREQUENCY : always