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

Behavior change in XML since JDK 8u271

XMLWordPrintable

    • b01

        A xml behavior change between jdk 1.8.0_251 to jdk 1.8.0_271 has been observed.

        When using the method Element::appendChild and use the format format-pretty-print to true
        to write the xml document.

        It was found that in 8u271 a \n is introduced which does not occur in 8u251.


        Example:
        ----jdk8u251---
        <root>
            <item/>
        </root>

        ---jdk8u271---
        <root>
            <item>
            </item>
        </root>

              ewhelan Evan Whelan (Inactive)
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: