RFR: 8287843: File::getCanonicalFile doesn't work for \?\C:\ style paths DOS device paths
Alan Bateman
alanb at openjdk.org
Thu Sep 7 08:36:40 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.
Would it be possible to summarise how this behaves when File just presents this prefix? It would be a weird thing to do but it may come about from usages of getParent or other methods. I think I'm mostly asking if is possible for the method to return the canonical path of the current directory when it should fail.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15603#issuecomment-1709709146
More information about the core-libs-dev
mailing list