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

Brian Burkhalter bpb at openjdk.org
Wed Sep 6 21:45:52 UTC 2023


On Wed, 6 Sep 2023 21:38:39 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> In the Windows implementation of java.io.File.getCanonicalPath, strip any long path or UNC prefix before canonicalizing the remainder of the pathname.

No `File` methods aside from `getCanonicalPath` are affected.

The existing `GetCanonicalPath` test is expanded to cover these cases and converted to JUnit 5.

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

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


More information about the core-libs-dev mailing list