在调用 beforeExecute 和afterExecute 之前,将对应TTL实例标记一个in iterator 的状态; 然后在 addValue 和removeValue 这类可能触发 ConcurrentModificationException 的方法里判断当时是否处于 in iterator 状态。 如果是,则抛异常出来,这样会比文档的约束效果更强,而且也能记
28 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 29 java.lang.Thread.run(Thread.java:818) It happened 21,632 times in my project and more than 99% is android6.0 I don't know how to fix it I use greenDAO like advertDao.rxPlain() .insertOrReplaceInTx(...