On Tue, 16 Sep 2025 22:03:54 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.
>
> Brian Burkhalter has updated the pull request incrementally with one
> additional commit since the last revision:
>
> 8355342: Fix possible sneaky NullPointerException
src/java.base/windows/classes/java/io/WinNTFileSystem.java line 463:
> 461: }
> 462:
> 463: private static final long HKEY_CURRENT_USER =0x80000001L;
Suggestion:
private static final long HKEY_CURRENT_USER = 0x80000001L;
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27324#discussion_r2353753718