RFR: 8154364: Files.isSameFile() throws NoSuchFileException with broken symbolic links [v2]

Brian Burkhalter bpb at openjdk.org
Thu Aug 14 15:14:58 UTC 2025


On Thu, 14 Aug 2025 15:02:26 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> src/java.base/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java line 478:
>> 
>>> 476: 
>>> 477:         // neither exists, compare normalized paths without filesystem access
>>> 478:         return obj1.normalize().equals(obj2.normalize());
>> 
>> This `Path::normalize` call was missed.
>
>> This `Path::normalize` call was missed.
> 
> Yes, I realized this myself a while ago.

Fixed in f25a372.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26736#discussion_r2276917283


More information about the nio-dev mailing list