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

Brian Burkhalter bpb at openjdk.org
Tue Aug 19 15:51:37 UTC 2025


On Tue, 19 Aug 2025 10:27:27 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8154364: Improve Unix link handling; return false instead of throwing IOException on Windows
>
> src/java.base/unix/classes/sun/nio/fs/UnixFileAttributes.java line 117:
> 
>> 115:         }
>> 116: 
>> 117:         return attrs;
> 
> We can create a follow-up issue to replace this with a version that doesn't use exceptions for control flow, like the 1-arg getIfExists. Then we can change the 1-arg method to use the 2-arg method.

Please see [JDK-8365807](https://bugs.openjdk.org/browse/JDK-8365807).

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

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


More information about the nio-dev mailing list