Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8256515

javax.xml.XMLEventReader produces incorrect START_DOCUMENT event

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      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


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joehw Joe Wang
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: