fastjson能否规避ConcurrentModificationException异常?

talent-tan 发布于 2013/09/19 19:47
阅读 3K+
收藏 0

@wenshao 你好,想跟你请教个问题:

fastjson能否规避ConcurrentModificationException异常?

Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
at java.util.HashMap$KeyIterator.next(HashMap.java:928)
at com.alibaba.fastjson.serializer.CollectionSerializer.write(CollectionSerializer.java:68)
at com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:369)
at com.alibaba.fastjson.JSON.toJSONString(JSON.java:520)


谢谢!

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部