Integrated: 8355342: File.getCanonicalPath on Java 24 resolves paths on network drives to UNC format
Brian Burkhalter
bpb at openjdk.org
Thu Nov 6 16:04:27 UTC 2025
On Tue, 16 Sep 2025 21:13:13 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.
This pull request has now been integrated.
Changeset: 1f08a3ed
Author: Brian Burkhalter <bpb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1f08a3ede2445fb05d9700a1293d681ca89cbf5b
Stats: 176 lines in 4 files changed: 117 ins; 35 del; 24 mod
8355342: File.getCanonicalPath on Java 24 resolves paths on network drives to UNC format
Reviewed-by: alanb
-------------
PR: https://git.openjdk.org/jdk/pull/27324
More information about the core-libs-dev
mailing list