RFR: 8068498: Remove constructor dependency on line.separator from PrintWriter and BufferedWriter

Xueming Shen xueming.shen at oracle.com
Fri Jan 9 16:16:43 UTC 2015


On 1/9/15 7:27 AM, Claes Redestad wrote:
> 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 
>
+1



More information about the core-libs-dev mailing list