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

Brian Burkhalter bpb at openjdk.org
Wed Sep 17 00:32:37 UTC 2025


> `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: Corrected a comment

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27324/files
  - new: https://git.openjdk.org/jdk/pull/27324/files/833ec725..0f29a4f3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27324&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27324&range=02-03

  Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27324.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27324/head:pull/27324

PR: https://git.openjdk.org/jdk/pull/27324


More information about the core-libs-dev mailing list