Integrated: 8306308: (ch) Writer created by Channels::newWriter may lose data
Brian Burkhalter
bpb at openjdk.org
Fri Oct 20 21:15:49 UTC 2023
On Mon, 16 Oct 2023 21:20:17 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Change `Channels.newWriter` to return a `Writer` created by first wrapping the `WritableByteChannel` in an `OutputStream` using `Channels.newOutputStream` and then wrapping the result in an `OutputStreamWriter`. With this change in place, the problems reported in the issue do not occur.
This pull request has now been integrated.
Changeset: a1a62d99
Author: Brian Burkhalter <bpb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a1a62d9964393533eeab269d1f405c8f0db1e900
Stats: 139 lines in 3 files changed: 104 ins; 22 del; 13 mod
8306308: (ch) Writer created by Channels::newWriter may lose data
Reviewed-by: djelinski, alanb
-------------
PR: https://git.openjdk.org/jdk/pull/16207
More information about the nio-dev
mailing list