RFR: 8327002: (fs) java/nio/file/Files/CopyMoveVariations.java should be able to test across file systems

Brian Burkhalter bpb at openjdk.org
Thu Feb 29 01:25:12 UTC 2024


On Thu, 29 Feb 2024 01:19:40 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> 1. Modify the test to allow specifying the location of the temporary directory to be distinct from that of the working directory.
> 2. Correctly handle the responses to `AccessDeniedException`s which occur when a move across different file systems fails.

1. Add property `copymove.tmp.dir` which can be set to specify the temporary file directory (`java.io.tmpdir` could simply be used instead but is not for now).
2. Correct handling of `AccessDeniedException`s occurring for `Files.move` when the source is a directory or a file and the move is to a different file system.
3. Rename various local variables.

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

PR Comment: https://git.openjdk.org/jdk/pull/18052#issuecomment-1970208802


More information about the nio-dev mailing list