RFR: 8114830: (fs) Files.copy fails due to interference from something else changing the file system [v6]

Vyom Tewari vtewari at openjdk.org
Wed Aug 9 05:31:38 UTC 2023


On Mon, 7 Aug 2023 16:35:18 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Throw a `FileSystemException` if attempting to create the target file with `O_EXCL` fails with `EEXIST`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8114830: Minor CopyTask cleanup

src/java.base/unix/classes/sun/nio/fs/UnixFileSystem.java line 672:

> 670:             } catch (UnixException x) {
> 671:                 if (x.errno() == EEXIST && flags.replaceExisting)
> 672:                     throw new FileSystemException(toString());

do you mean 'target.toString()' ?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15141#discussion_r1287965372


More information about the nio-dev mailing list