Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
API 2.23.4
-
None
Description
I introduced a regression with SLING-10327, that nested adaptTo() calls on the same adaptable throw a ConcurrentModificationException.
java.util.ConcurrentModificationException at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1134) at org.apache.sling.api.adapter.SlingAdaptable.adaptTo(SlingAdaptable.java:104) at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.adaptTo(ResourceResolverImpl.java:636)
Reverting https://github.com/apache/sling-org-apache-sling-api/commit/eeb8f84f92a2f1bbfad236ba9dca9c15c2e837f3
Attachments
Issue Links
- fixes
-
SLING-10327 SlingAdaptable: simplify getAdapter()
- Closed