RFR: 4670339: (ch) Channels.newChannel(OutputStream) should flush stream on every write

Brian Burkhalter bpb at openjdk.org
Mon Mar 27 23:45:28 UTC 2023


Call `flush()` on the `OutputStream` before returning from `WritableByteChannelImpl::write`.

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

Commit messages:
 - 4670339: (ch) Channels.newChannel(OutputStream) should flush stream on every write

Changes: https://git.openjdk.org/jdk/pull/13198/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13198&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-4670339
  Stats: 45 lines in 2 files changed: 40 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/13198.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13198/head:pull/13198

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


More information about the nio-dev mailing list