RFR: 8301043: Super-interface for PrintStream and PrintWriter [v2]

Alan Bateman alanb at openjdk.org
Tue Jan 31 18:31:49 UTC 2023


On Sun, 29 Jan 2023 07:11:26 GMT, Tingjun Yuan <duke at openjdk.org> wrote:

>> Add `java.io.PrintOutput` to represent print operations, and modify `java.io.PrintStream` and `java.io.PrintWriter` to implement it.
>
> Tingjun Yuan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix grammar mistakes in the doc

A PR may be a bit premature as this probably needs discussion first on whether this is worth doing. Yes, there are common methods between the two but at the same time, the byte and character hierarchies have always been distinct. Have you encountered many libraries with overloads for PrintStream and PrintWriter?

-------------

PR: https://git.openjdk.org/jdk/pull/12277


More information about the core-libs-dev mailing list