goldmansachs / gs-collections

GS Collections has been migrated to the Eclipse Foundation, re-branded as Eclipse Collections. https://www.eclipse.org/collections/
https://www.eclipse.org/collections/
1.81k stars 276 forks source link

ArrayIndexOutOfBoundsException for MutableLongObjectMap.withoutAllKeys #23

Closed aewhite closed 9 years ago

aewhite commented 9 years ago

I'm using version 6.1.0 when I ran across the following error:

java.lang.ArrayIndexOutOfBoundsException: 16
    at com.gs.collections.impl.map.mutable.primitive.LongObjectHashMap$KeysSetIterator.next(LongObjectHashMap.java:3725)
    at com.gs.collections.impl.iterator.UnmodifiableLongIterator.next(UnmodifiableLongIterator.java:42)
    at com.gs.collections.impl.lazy.primitive.SelectLongIterable$SelectLongIterator.hasNext(SelectLongIterable.java:233)
    at com.gs.collections.impl.map.mutable.primitive.LongObjectHashMap.withoutAllKeys(LongObjectHashMap.java:2574)
aewhite commented 9 years ago

I retract this bug report. I was using a lazy iterator over the keys to the map I was modifying.