RFR: 8249867: xml declaration is not followed by a newline
naoto at openjdk.java.net
Tue Jan 12 23:58:55 UTC 2021
On Tue, 12 Jan 2021 01:24:38 GMT, Joe Wang <joehw at openjdk.org> wrote:
> Please review a patch to add an explicit control over whether a newline should be added after the XML header. This is done by adding a DOM LSSerializer property "jdk-is-standalone" and System property "jdk.xml.isStandalone".
> This change addresses an incompatibility introduced during 7u4 as an update to Xalan 2.7.1.
src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/dom3/DOMConstants.java line 131:
> 130: // Corresponding System property
> 131: public static final String SP_IS_STANDALONE = "jdk.xml.isStandalone";
Should this system property key be described somewhere in the javadoc, as an Oracle implSpec? Otherwise, how the user would know this switch?
More information about the core-libs-dev