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
{{ message }}
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.
Orderbook which is modified here can be iterated downstream in the same time which causes ConcurrentModificationException. I believe clean solution to this is not to add synchronized as in #387 but to use Observables without side effects and pass immutable objects, or at least when modification of mutable object is needed, create a copy.
The text was updated successfully, but these errors were encountered:
Yes, this problem is endemic. I've never tried because there's so much of this sort of code that to remove the downstream protections in my app would require me to find and eliminate every single one of these smells, and there are too many.
Related to #387
xchange-stream/xchange-binance/src/main/java/info/bitrich/xchangestream/binance/BinanceStreamingMarketDataService.java
Line 268 in 8ac7f03
Orderbook which is modified here can be iterated downstream in the same time which causes ConcurrentModificationException. I believe clean solution to this is not to add synchronized as in #387 but to use Observables without side effects and pass immutable objects, or at least when modification of mutable object is needed, create a copy.
The text was updated successfully, but these errors were encountered: