On Wed, 20 Sep 2023 18:42:31 GMT, Alan Bateman <al...@openjdk.org> wrote:
> File::isAbsolute, it looks like it will return true for input like > `\\\?\\foo` but it will be treated by toAbsolutePath as a relative path. Right on: jshell> File f = new File("\\\?\\foo") f ==> \?\foo jshell> f.isAbsolute() $2 ==> true jshell> f.getAbsolutePath() $3 ==> "C:\\Users\\bpb\\foo" jshell> f.getCanonicalPath() $4 ==> "C:\\Users\\bpb\\foo" ------------- PR Comment: https://git.openjdk.org/jdk/pull/15603#issuecomment-1728260652