RFR: 8303260: (fc) FileChannel::transferFrom should support position > size()
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Mar 10 15:39:08 UTC 2023
On Mar 10, 2023, at 2:43 AM, Alan Bateman <alanb at openjdk.org<mailto:alanb at openjdk.org>> wrote:
On Wed, 1 Mar 2023 01:34:33 GMT, Brian Burkhalter <bpb at openjdk.org<mailto: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 spec + impl changes looks fine.
Is this test copied/edited from an older test?
No, I don’t recall doing that.
Configuration name FAST_TRANSFER_xxx looks a bit odd and maybe we just replace it with a simpler JUnit style test?
Will investigate.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20230310/1be57c51/attachment.htm>
More information about the nio-dev
mailing list