JDK-8288972 : OutputKeys.CDATA_SECTION_ELEMENTS regresses in jdk 1.8.0.332.b09
  • Type: Bug
  • Component: xml
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-06-22
  • Updated: 2022-06-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
Originally reported: https://github.com/adoptium/adoptium-support/issues/529

OutputKeys.CDATA_SECTION_ELEMENTS doesn't work after updating jdk from 1.8.0.322.b06 to 1.8.0.332.b09.

Steps to reproduce
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
transformer.setOutputProperty(OutputKeys.CDATA_SECTION_ELEMENTS, "description");

Expected results
<description><![CDATA[<es:thumbnail></es:thumbnail><es:details>123<br><p>tttt</p></es:details>]]></description>

Actual results
<description>&lt;es:thumbnail&gt;&lt;/es:thumbnail&gt;&lt;es:details&gt;123&lt;/es:details&gt;</description>

Triaging info
Java version: jdk 1.8.0.332.b09
Comments
We are missing a proper reproducer for this (the attached test case doesn't reproduce). I've asked the original reporter for one.
22-06-2022

My bad, apologies on not doing that earlier.
22-06-2022