RFR: 4619075: (ch) newChannel() should return Gathering/ScatteringByteChannel [v3]

Brian Burkhalter bpb at openjdk.java.net
Wed Oct 20 16:40:45 UTC 2021


On Wed, 13 Oct 2021 21:05:26 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Modify `Channels.newChannel(InputStream)` and `Channels.newChannel(OutputStream)` to return `ScatteringByteChannel` and `GatheringByteChannel`, respectively.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   4619075: Add @since tags to new methods

I think I'd prefer to leave the proposed change as-is or withdraw it. I don't like returning something that requires relying on comments to interpret, and I like the default method idea even less.

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

PR: https://git.openjdk.java.net/jdk/pull/5922


More information about the nio-dev mailing list