RFR: 8287843: File::getCanonicalFile doesn't work for \?\C:\ style paths DOS device paths [v4]
Brian Burkhalter
bpb at openjdk.org
Thu Sep 21 00:49:52 UTC 2023
On Wed, 20 Sep 2023 23:48:13 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.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8287843: Move prefix stripping to separate method; add to isAbsolute
Support for `isAbsolute` was added. All `jdk_core` tests still pass. Test cases still need to be added to `GetAbsolutePath.java` and `IsAbsolute.java`. These tests also appear ripe for conversion to JUnit 5.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15603#issuecomment-1728602641
More information about the core-libs-dev
mailing list