java.io.File#toPath() on Windows doesn't understand "NUL:" (null device)?
Jaikiran Pai
jai.forums2013 at gmail.com
Wed Mar 17 03:26:52 UTC 2021
On 17/03/21 8:51 am, Jaikiran Pai wrote:
>
> Test results are from latest Java 16 release on a Windows setup.
Just gave a quick try against Java 8 (java.version=1.8.0_252) and it
fails on that version too with the same error:
Exception in thread "main" java.nio.file.InvalidPathException: Illegal
char <:> at index 3: NUL:
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.io.File.toPath(File.java:2234)
at FileTest.main(FileTest.java:18)
-Jaikiran
More information about the nio-dev
mailing list