RFR: 8325302: Files.move(REPLACE_EXISTING) throws NoSuchFileException on deleted target

Brian Burkhalter bpb at openjdk.org
Wed Feb 7 00:35:03 UTC 2024


When replacing an existing file as part of a non-atomic copy (`Files.copy`) or move (`Files.move`), ignore any file not found error encountered while trying to delete the target file.

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

Commit messages:
 - 8325302: Files.move(REPLACE_EXISTING) throws NoSuchFileException on deleted target

Changes: https://git.openjdk.org/jdk/pull/17740/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17740&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8325302
  Stats: 24 lines in 2 files changed: 14 ins; 2 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/17740.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17740/head:pull/17740

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


More information about the nio-dev mailing list