src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToStream.java
--- a/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToStream.java Fri Feb 23 22:09:16 2018 +0100
+++ b/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToStream.java Fri Feb 23 16:00:44 2018 -0500
@@ -138,8 +138,7 @@
* but this value can be set through the xsl:output
* extension attribute xalan:line-separator.
*/
- protected char[] m_lineSep =
- SecuritySupport.getSystemProperty("line.separator").toCharArray();
+ protected char[] m_lineSep = System.lineSeparator().toCharArray();
/**
* True if the the system line separator is to be used.