Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10371

SlingAdaptable: ConcurrentModificationException on nested adaptTo() calls

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • API 2.23.4
    • API 2.23.6
    • API
    • 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

          Activity

            People

              joerghoh Joerg Hoh
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m