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
Please see the attached file for a test reproducing the behavior: objIntMapRetainAll.zip
This problem happens when using Koloboke compile to implement a ObjIntMap<String> map, and then trying to remove elements using keySet().retainAll(...).
This issue seems to happen when the first element of the backing array needs to be removed.
In the generated source code, this block adds a tombstone element:
Please see the attached file for a test reproducing the behavior:
objIntMapRetainAll.zip
This problem happens when using Koloboke compile to implement a
ObjIntMap<String>
map, and then trying to remove elements usingkeySet().retainAll(...)
.This issue seems to happen when the first element of the backing array needs to be removed.
In the generated source code, this block adds a tombstone element:
But then, the check on key existence for each iteration of the loop is:
So when the check is executed against the
REMOVED
object, it fails with this exception:The workaround, as demonstrated by the attached project, it just to use a generic ObjIntMap instead.
The text was updated successfully, but these errors were encountered: