RFR: 8003887: File.getCanonicalFile() does not resolve symlinks on MS Windows [v2]

Brian Burkhalter bpb at openjdk.org
Tue Sep 3 21:37:19 UTC 2024


On Tue, 3 Sep 2024 16:00:53 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8003887: Free value allocated in and returned by getFinalPath()
>
> src/java.base/windows/classes/java/io/WinNTFileSystem.java line 494:
> 
>> 492:         }
>> 493:         String canonicalPath = canonicalize0(path);
>> 494:         return getFinalPath(canonicalPath);
> 
> This needs to be changed to ignore any error in `getFinalPath` and return `canonicalPath` instead.

So changed in 2d6423b.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20801#discussion_r1742720149


More information about the core-libs-dev mailing list