RFR: 8292562: (fc) Use copy_file_range in FileChannel::transferTo on Linux [v6]

Alan Bateman alanb at openjdk.org
Thu Aug 25 08:30:28 UTC 2022


On Thu, 25 Aug 2022 02:52:47 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> > I think this one is done.
> 
> Well, maybe it is _now_: the new test failed on macOS and Windows which do not have the problem reported in ...

A long standing issue is that FileChannel needs to specify how methods that take a position behave when a file is opened for append. This includes the transferXXX methods. It may be that transferFrom needs to be allowed to throw an exception when called on a FileChannel to a file opened for append. So maybe the simplest thing for now is to revert the test back to testing transferTo when the target is opened for append. That will be a simpler test to maintain.

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

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


More information about the nio-dev mailing list