RFR: 8365626: (fs) Improve handling of broken links in Files.isSameFile() (win) [v4]
Alan Bateman
alanb at openjdk.org
Sat Sep 13 07:19:45 UTC 2025
On Fri, 12 Sep 2025 17:53:17 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Same question with the code that follows where it checks !attrs.isSymbolicLink(). Does it leak for this case?
>
> attrs.isSymbolicLink() does not throw nor does any other code before the handle is added to the linkAttrs set and all the handles in there are closed in either the catch or the finally block.
Let me re-phrase the question. Where is the handle closed when the file is not a symbolic link? "h" is not in scope.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27079#discussion_r2345984248
More information about the nio-dev
mailing list