且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

并发修改异常

更新时间:2023-02-05 14:32:22

If you constructed LinkedHashMap with accessOrder = true then LinkedHashMap.get() actually mutates the LinkedHashMap since it stores the most recently accessed entry at the front of the linked list of entries. Perhaps something is calling get() while the array list is making its copy with the Iterator.