Bug on at least Linux, Mac OS X with Paths.get("").normalize()

Alan Bateman Alan.Bateman at oracle.com
Sat Mar 22 08:05:19 UTC 2014


On 22/03/2014 00:56, Francis Galiegue wrote:
> :
>
> ----
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
>      at sun.nio.fs.UnixPath.normalize(UnixPath.java:508)
>      at Foo.main(Foo.java:7)
> ----
>
> Confirmed to "work" on Mac OS X; what is more, this affects both Java
> 7 and Java 8.
>
Thanks, someone else reported the same thing this week:

https://bugs.openjdk.java.net/browse/JDK-8037945

It's an oversight but easily fixed.

-Alan.


More information about the nio-dev mailing list