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

Roland Mesde duke at openjdk.org
Mon Feb 23 18:09:57 UTC 2026


On Wed, 18 Feb 2026 20:10:30 GMT, Roland Mesde <duke at openjdk.org> wrote:

> 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
> 
> Results attached:
> 
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/25419689/windows-x64-specific-test.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/25419690/macos-aarch64-specific-test.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/25419691/linux-x64-specific-test.log)
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/25419692/linux-aarch64-specific-test.log)

This pull request has now been integrated.

Changeset: 2472163c
Author:    Roland Mesde <mesde at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk25u-dev/commit/2472163c52a0279a894fc51e583afafcc556cdf3
Stats:     5 lines in 1 file changed: 2 ins; 0 del; 3 mod

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

Backport-of: 43040f30a72591a37deb9a54ab7723988c1e4b51

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

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


More information about the jdk-updates-dev mailing list