On Tue, 16 Sep 2025 21:13:13 GMT, Brian Burkhalter <[email protected]> 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 <[email protected]>
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

Reply via email to