RFR: 8368165: (fs) Path.toRealPath does not perform correctly for symbolic links in a mapped drive (win)
Brian Burkhalter
bpb at openjdk.org
Wed Oct 29 21:23:24 UTC 2025
On Wed, 29 Oct 2025 00:52:18 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> If `getFinalPath` throws an exception, or converts a drive path to a UNC path, then fall back to the slow path which uses `resolveAllLinks`.
I don't think the current behavior is incorrect, but it does not provide the sought for outcome. The fallback path using `resolveAllLinks` appears to find the desired answer in these cases where ` GetFinalPathNameByHandle` itself fails.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28032#issuecomment-3464107901
More information about the nio-dev
mailing list