Skip to content
Advertisement

Tag: concurrentmodification

java.util.ConcurrentModificationException while mutating an object

I am iterating over a List of CustomObject and while doing this iteration, I am mutating this object by adding a tag to tags list of this custom object. I am not adding or removing any CustomObject to or from customObjects (List). I am still getting java.util.ConcurrentModifcationException. Here is the stack trace: Does this mean we can get ConcurrentModifcationException even

Advertisement