git: openjdk/jdk: 8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable

Brian Burkhalter bpb at openjdk.org
Tue Sep 26 15:29:03 UTC 2023


Changeset: 36ac8390
Author:    Brian Burkhalter <bpb at openjdk.org>
Date:      2023-09-26 15:27:44 +0000
URL:       https://git.openjdk.org/jdk/commit/36ac83904c9e81a01822b0e36ef677cae2808709

8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable

Reviewed-by: alanb

! src/java.base/share/classes/java/nio/file/CopyMoveHelper.java
! src/java.base/unix/classes/sun/nio/fs/UnixFileSystem.java
! src/java.base/unix/classes/sun/nio/fs/UnixFileSystemProvider.java
! test/jdk/java/nio/file/Files/CopyAndMove.java
+ test/jdk/java/nio/file/Files/CopyMoveVariations.java



More information about the jdk-changes mailing list