Files.isHidden() throws ArrayIndexOutOfBoundsException on Linux
Christian Stein
sormuras at gmail.com
Thu Oct 29 05:19:50 UTC 2020
Hi,
Is the following worth creating an issue at bugs.openjdk.java.net for?
Running JShell 16-ea on Linux:
jshell> Files.isHidden(Path.of(""))
| Exception java.lang.ArrayIndexOutOfBoundsException: Index 0 out of
bounds for length 0
| at UnixFileSystemProvider.isHidden
(UnixFileSystemProvider.java:355)
| at Files.isHidden (Files.java:1637)
| at (#30:1)
Same Windows returns a value without throwing an exception:
jshell> Files.isHidden(Path.of(""))
$1 ==> false
Cheers,
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20201029/4c65ee96/attachment.htm>
More information about the nio-dev
mailing list