eclipse / eclipse-collections

Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
http://www.eclipse.org/collections
2.42k stars 604 forks source link

Bug in UnifiedMap? #1524

Closed siddhsql closed 10 months ago

siddhsql commented 10 months ago

can someone tell me how is this screenshot possible:

image

I can't give full code as this error is happening deep in my application but as you can see from the screenshot nodes.get(t) == null) evaluated to true and then when I immediately re-evaluated in the debugger it gives false.

motlin commented 10 months ago

Your stack trace showed:

Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 16 out of bounds for length 16
    at org.eclipse.collections.impl.set.mutable.UnifiedSet$PositionalIterator.next(UnifiedSet.java:1796)

Which means you're mutating and reading non-thread-safe collections like UnifiedMap and UnifiedSet from multiple threads. This is a bug in your application, not in the framework, so I'll close this issue.