Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrencyModificationException in DefaultEntityCallbacks [DATACMNS-1758] #2174

spring-projects-issues opened this issue Jun 29, 2020 · 1 comment
in: mapping type: bug


Copy link

spring-projects-issues commented Jun 29, 2020

MyeongHyeonLee opened DATACMNS-1758 and commented

similar issue:


ConcurrentModificationException occurred.



  at java.base/java.util.ArrayList$Itr.checkForComodification(
  at java.base/java.util.ArrayList$


  • callbackDiscoverer.getEntityCallbacks result is cached. but, this List<EntityCallback<T>> can be updated.



for (EntityCallback<T> callback : callbackDiscoverer.getEntityCallbacks(entityType,
      ResolvableType.forClass(callbackType))) {


I think it is safe to cache the List locally before executing the loop.



Affects: 2.3.1 (Neumann SR1)

Issue Links:

Referenced from: pull request #453

Backported to: 2.3.2 (Neumann SR2)

Copy link

spring-projects-issues commented Jul 9, 2020

Mark Paluch commented

We decided to revert the optimization introduced with DATACMNS-1698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: mapping type: bug
None yet

No branches or pull requests

2 participants