下面有段代码。我有两个线程A和B同时运行。// Add more itemfor (String item : listPeople) {}
- add/remove item to list people
使用这种形式的for循环,它通过列表的iterator循环。所以它会与ConcurrentModifica
我使用的是Parse,我经常会随机地得到这个异常。问题是,我不知道是什么导致了这种情况的发生?有人知道是什么触发了对"ParseObject.collectFetchedObjects()“的调用吗?ConcurrentModificationException的原因可能是什么?下面是堆栈跟踪的重要部分:at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
at java.util.HashMap$ValueIterator.nex