RFR: 8355342: File.getCanonicalPath on Java 24 resolves paths on network drives to UNC format [v4]

Brian Burkhalter bpb at openjdk.org
Fri Sep 19 20:39:28 UTC 2025


On Wed, 17 Sep 2025 20:16:41 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> [...] post-processing the result from getFinalPath, which I think is a bit too hacky to have in this code.

This hack does not work when Z: is mapped to a drive on another machine, at least on my laptop because there is no key

HKEY_CURRENT_USER\Network\Z\RemotePath

in the registry in this case.

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

PR Comment: https://git.openjdk.org/jdk/pull/27324#issuecomment-3313739768


More information about the core-libs-dev mailing list