On Wed, 10 Nov 2021 19:41:29 GMT, Jonathan Gibbons <j...@openjdk.org> wrote:
> 1. `PrintStream(OutputStream)` and `PrintStream(OutputStream, boolean)` > should be redefined so that they internally check if the stream arg is a > PrintStream, in which case they use the encoding from the `PrinStream` > instead of the default. I think you mean the PrintWriter constructors here. Yes, there is merit in that. PrintStream is a bit unusual in that it's an OutputStream but it has a charset because it prints text output. ------------- PR: https://git.openjdk.java.net/jdk/pull/5771