Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8068498

Remove constructor dependency on line.separator from PrintWriter and BufferedWriter

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b47
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Current implementations of PrintWriter and BufferedWriter evaluate the system property line.separator at creation time, which means that users can set the value of this property before constructing either of these writers as a means to try and manipulate the writer. This should be discouraged and removed in favor of an approach where users instead can easily override the lineSeparator value.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  redestad Claes Redestad
                  Reporter:
                  redestad Claes Redestad
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: