RFR: 8303260: (fc) FileChannel::transferFrom should support position > size()
altrisi
duke at openjdk.org
Sun Mar 5 21:09:11 UTC 2023
On Wed, 1 Mar 2023 01:34:33 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Enhance `FileChannel::transferFrom` to extend the channel's file if `position > size()`. This is consistent with `FileChannel::write(ByteBuffer, long)`.
Unrelated to the content of this PR, but the bot seems to be obsessed with editing the main comment description, at the time of writing it has made 4852 edits, seems to make around one per minute. Thought I'd mention it given it's easy to miss so I figured this way it's more likely to get resolved.
-------------
PR: https://git.openjdk.org/jdk/pull/12797
More information about the nio-dev
mailing list