e.g.
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
at java.util.AbstractList$Itr.next(AbstractList.java:417)
at EnglishZIAgent.action(EnglishZIAgent.java:35)
at AuctionEntity$1.run(AuctionEntity.java:59)
at java.lang.Thread.run(Thread.java:536)
How can I find which piece of code is modifying my collection when
EnglishZIAgent.java:35 is called? It would be very handy for
debugging.
Some information...
EnglishZIAgent.java:35 is a Iterator.next() call. The collection on
which it is called is private member of the class and has no public
access through methods. The method action() is called as part of a
run() method (the EnglishZIAgent has its own thread).
Thanks,
Iain
You could write a wrapper List implementation that logs all method calls
along with a stack trace, and then wrap the List in that.
Chris Smith