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

Brian Burkhalter bpb at openjdk.org
Tue Sep 3 16:03:19 UTC 2024


On Fri, 30 Aug 2024 21:39:47 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Return the final path derived from the string returned by `canonicalize0()`.
>
> 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.

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

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


More information about the core-libs-dev mailing list