RFR: 8355342: File.getCanonicalPath on Java 24 resolves paths on network drives to UNC format [v13]
Alan Bateman
alanb at openjdk.org
Sat Nov 1 07:38:03 UTC 2025
On Fri, 31 Oct 2025 18:38:40 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> `File.getCanonicalPath` invokes `GetFinalPathNameByHandle` on the result of `canonicalize0` which causes the drive letter of a mapped drive to be converted to a UNC prefix. If such a substitution is detected, this request proposes to revert the conversion of drive letter to UNC prefix before returning the canonical path.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8355342: Clean up "const" usages
It took a lot of iterations but I think the latest is good. I assume you'll run tier1+tier2 at least before integrating.
-------------
Marked as reviewed by alanb (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/27324#pullrequestreview-3406934406
More information about the core-libs-dev
mailing list