RFR: 8365626: (fs) Improve handling of broken links in Files.isSameFile() (win)

Brian Burkhalter bpb at openjdk.org
Fri Sep 5 15:34:13 UTC 2025


On Fri, 5 Sep 2025 12:48:57 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Improve handling of broken symbolic links in `Files.isSameFile` on Windows as was done on Unix by the fix of [JDK-8154364](https://bugs.openjdk.org/browse/JDK-8154364).
>
> src/java.base/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java line 36:
> 
>> 34: import java.io.*;
>> 35: import java.util.*;
>> 36: import java.util.concurrent.atomic.AtomicLong;
> 
> ?

The `AtomicLong` import is vestigial and shall be removed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27079#discussion_r2325413348


More information about the nio-dev mailing list