Posted by tankist
on February 12, 2010 at 2:22 AM PST
Sorry for my English.
I use Fedora 12 x86_64 linux and jdk7 installed from binary package jdk-7-ea-bin-b82-linux-x64-04_feb_2010.bin.
When i try to run this code:
Path somePath = Paths.get("/home/v/one/two/thre");
Path ends = Paths.get("three");
boolean b = somePath.endsWith(ends);
i have error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 21
Java Result: 1
If last element of "somePath" (in this example "thre" starts with same characters as "ends" and length biggerer than length of last element of "somePath" then i have ArrayIndexOutOfBoundsException.