On Tue, 9 Jun 2026 19:11:21 GMT, Shiv Shah <[email protected]> wrote:

> Files.copy with REPLACE_EXISTING replaces the directory inode, corrupting it. 

Files.copy with REPLACE_EXISTING will throw if the target is a non-empty 
directory. 

I think this bug report is really about tests that accidentally specify the 
current directory as the target, and use the REPLACE_EXISTING option. In that 
case, the directory will be replaced if empty, and a new directory created. 
This can be confusing but I don't think we should use "corrupts" in the JBS 
issue or PR as there isn't any corruption.

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

PR Comment: https://git.openjdk.org/jdk/pull/31444#issuecomment-4668119323

Reply via email to