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

Brian Burkhalter bpb at openjdk.org
Fri Sep 8 15:31:42 UTC 2023


On Fri, 8 Sep 2023 10:00:42 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> I'm trying to see how this case fails in the badPaths list.

I'll investigate the other topics you raise, but I should point out that the results of this test are the same as for the mainline except for the last two good paths

        list.add(Arguments.of("\\\?\\C:\\Users\\file.dat",
                              "C:\\Users\\file.dat"));
        list.add(Arguments.of("\\\?\\UNC\\localhost\\C$\\Users\\file.dat",
                              "\\\\localhost\\C$\\Users\\file.dat"));

which fail with the mainline.

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

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


More information about the core-libs-dev mailing list