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

LongArrayList.reverseThis() is broken #31

Closed jankotek closed 8 years ago

jankotek commented 8 years ago

LongArrayList.reverseThis() operates on array size, not on actual List size. After reversing some items are lost. This was seen in 7.0.0

Reproduce: 1) create LongArrayList with array size 10 2) add one non zero item. 3) perform reverseThis() 4) List now contains zero