RFR: 8287843: File::getCanonicalFile doesn't work for \?\C:\ style paths DOS device paths [v2]

Alan Bateman alanb at openjdk.org
Wed Sep 20 07:28:43 UTC 2023


On Wed, 20 Sep 2023 02:14:48 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> It could be that if after stripping the `\\\?\` prefix the result is relative or drive-relative, then it should first be resolved in the same way before proceeding.

Right, which is why the one-arg WinNTFileSystem.resolve may be the right place to check for the prefix as it would fix the issue for both getAbsolutePath too.

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

PR Comment: https://git.openjdk.org/jdk/pull/15603#issuecomment-1727121877


More information about the core-libs-dev mailing list