[jdk21u-dev] RFR: 8326897: (fs) The utility TestUtil.supportsLinks is wrongly used to check for hard link support

Goetz Lindenmaier goetz at openjdk.org
Tue Feb 3 13:13:02 UTC 2026


I backport this for parity with 21.0.11-oracle.

resolved two files:

test/jdk/java/nio/file/Path/ToRealPath.java
Omitted two test cases that are not in 21.
test/jdk/java/nio/file/attribute/PosixFileAttributeView/Basic.java
Trivial resolve.

Both depend on https://bugs.openjdk.org/browse/JDK-8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link

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

Commit messages:
 - backport bbfda6599a878746cd0bab72952deae95e9f5dea

Changes: https://git.openjdk.org/jdk21u-dev/pull/2594/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2594&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8326897
  Stats: 111 lines in 18 files changed: 22 ins; 1 del; 88 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/2594.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2594/head:pull/2594

PR: https://git.openjdk.org/jdk21u-dev/pull/2594


More information about the jdk-updates-dev mailing list