RFR: 8303260: (fc) FileChannel::transferFrom should support position > size() [v2]

Brian Burkhalter bpb at openjdk.org
Wed Mar 15 21:49:15 UTC 2023


> Enhance `FileChannel::transferFrom` to extend the channel's file if `position > size()`. This is consistent with `FileChannel::write(ByteBuffer, long)`.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8303260: Convert test to JUnit 5

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12797/files
  - new: https://git.openjdk.org/jdk/pull/12797/files/82afccce..0639c239

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12797&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12797&range=00-01

  Stats: 91 lines in 1 file changed: 43 ins; 21 del; 27 mod
  Patch: https://git.openjdk.org/jdk/pull/12797.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12797/head:pull/12797

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


More information about the nio-dev mailing list