RFR: 8068498: Remove constructor dependency on line.separator from PrintWriter and BufferedWriter
Claes Redestad
claes.redestad at oracle.com
Fri Jan 9 15:27:05 UTC 2015
Hi,
please review this change to remove the dependency on the line.separator
property at object construction time by instead using the
System.lineSeparator()
utility.
In itself, this change will break some applications manipulating the
line.separator
property to change the per-instance behavior, which is an unspecified
implementation
behavior. This was partially discussed and suggested earlier on this
list[1], and the
intent is to provide a well-specified method of overriding the line
separator for a
PrintWriter and possibly BufferedWriter as a follow-on to this.
webrev: http://cr.openjdk.java.net/~redestad/8068498/webrev.01/
bug: https://bugs.openjdk.java.net/browse/JDK-8068498
Testing: JTREG java/lang java/io
/Claes
[1]
http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-January/030530.html
More information about the core-libs-dev
mailing list