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

Brian Burkhalter bpb at openjdk.org
Fri Sep 12 16:12:18 UTC 2025


On Fri, 12 Sep 2025 12:19:34 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Let's go back to L477. If the readAttributes throws, where is the handle closed?

Oh, you're correct: that looks like a leak. The variable `h` should be closed in a catch block for `readAttributes`. Will fix. Thanks for the "catch".

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

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


More information about the nio-dev mailing list