You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variterator = IntList.of(1, 1).subList(1, 2).iterator();
while (iterator.hasNext()) iterator.nextInt();
throws java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2.
It's reproducible with DoubleList as well. Haven't checked other types though.
Possible workaround: replace IntList with IntArrayList.
Affected version: fastutil-core:8.5.12.
I guess, the problem is in missing addition of from inside hasNext method.
The text was updated successfully, but these errors were encountered:
Example:
throws
java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
.It's reproducible with DoubleList as well. Haven't checked other types though.
Possible workaround: replace
IntList
withIntArrayList
.Affected version:
fastutil-core:8.5.12
.I guess, the problem is in missing addition of
from
insidehasNext
method.The text was updated successfully, but these errors were encountered: