RFR: 8376700: java/nio/file/DirectoryStream/SecureDS.java fails AtomicMoveNotSupportedException [v3]

SendaoYan syan at openjdk.org
Fri Jan 30 00:35:49 UTC 2026


> Hi all,
> 
> Before this PR, if the jtreg work directory and the /tmp directory locate in different linux volume or disk partition, test will report fails "java.nio.file.AtomicMoveNotSupportedException: file -> file: Invalid cross-device link". The linux syscall `rename()` doesn't support rename file across different volume, so I think the AtomicMoveNotSupportedException is not a JVM bug.
> 
> This PR try to catch the AtomicMoveNotSupportedException and throw a SkippedException rather report fails. And split this test as two tests, one test for the default temporary directory '/tmp', another test for current jtreg work directory, this will make sure at least one test run non-skipped.

SendaoYan has updated the pull request incrementally with one additional commit since the last revision:

  Revert change to test/benchmarks/micros-javac/pom.xml by mistake

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29487/files
  - new: https://git.openjdk.org/jdk/pull/29487/files/75464c09..0770558f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29487&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29487&range=01-02

  Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29487.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29487/head:pull/29487

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


More information about the nio-dev mailing list