Skip to content

Commit

Permalink
refs#1496 ConcurrentModificationException when resolved a new classname
Browse files Browse the repository at this point in the history
  • Loading branch information
yuba authored and asolntsev committed Aug 30, 2024
1 parent 6a07327 commit da96dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/src/play/classloading/ApplicationClassloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -488,7 +489,7 @@ public List<Class> getAssignableClasses(Class clazz) {
}

// assignable classes cache
private final Map<String, List<Class>> assignableClassesByName = new HashMap<>(100);
private final Map<String, List<Class>> assignableClassesByName = new ConcurrentHashMap<>(100);

/**
* Find a class in a case insensitive way
Expand Down

0 comments on commit da96dda

Please sign in to comment.