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

Alan Bateman alanb at openjdk.org
Tue Sep 16 07:37:34 UTC 2025


On Sat, 13 Sep 2025 07:16:57 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> 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.

Now back to the question from a few days ago, is the handle closed if linkAttrs.add(linkAttr) fails and FileSystemLoopException is thrown?

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

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


More information about the nio-dev mailing list