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

Alan Bateman alanb at openjdk.org
Tue Nov 4 15:54:55 UTC 2025


On Tue, 4 Nov 2025 01:59:36 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> which was apparently due to `wcanonicalize()` failing when `getFinalPath()` failed for a symlink. Suppressing this failure reinstates the control flow previously defined in the Java layer. With this change, all tier1-tier3 tests pass.

File::getCanonicalFile is specified to return a result when the file doesn't exist to I think this is okay. Were you able to establish if this was a just a broken link or something else?

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

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


More information about the core-libs-dev mailing list