RFR: 8303260: (fc) FileChannel::transferFrom should support position > size()
Alan Bateman
alanb at openjdk.org
Wed Mar 1 15:18:29 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)`.
The update to the API docs looks okay, the implementation change looks fine. I just wondering if there is anything that we might be missing to explain the restriction in the original API.
-------------
PR: https://git.openjdk.org/jdk/pull/12797
More information about the nio-dev
mailing list