[jdk25u-dev] RFR: 8372012: java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java should check ability to create links

Roland Mesde duke at openjdk.org
Wed Feb 18 21:49:30 UTC 2026


Backporting JDK-8372012: java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java should check ability to create links.

This PR adds symbolic link support check to SetTimesNanos.java before attempting to create symbolic links, preventing failures on platforms that don't support them.

For parity with Oracle JDK.

Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:

make test TEST=test/jdk/java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java

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

Commit messages:
 - Backport 43040f30a72591a37deb9a54ab7723988c1e4b51

Changes: https://git.openjdk.org/jdk25u-dev/pull/287/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=287&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8372012
  Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/287.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/287/head:pull/287

PR: https://git.openjdk.org/jdk25u-dev/pull/287


More information about the jdk-updates-dev mailing list