[ 
https://issues.apache.org/jira/browse/SLING-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler closed SLING-2420.
-----------------------------------

    
> Prevent deadlock with Framework
> -------------------------------
>
>                 Key: SLING-2420
>                 URL: https://issues.apache.org/jira/browse/SLING-2420
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions:  i18n 2.2.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: i18n 2.2.2
>
>
> JcrResourceBundleProvider may cause a deadlock between itself and the OSGi 
> Framework:
> * clearCache is called from framework and synchronizes on itself while 
> calling into the framework
> * getResoureBundleInternal  synchronizes on itself and calls into the 
> framework
> Fixes:
>   - clearCache synchronizes on self to get a copy of the service registration 
> list and clears the list; the services are unregistered outside of the sync
>   - getResourceBundleInternal only stores the service registration in the 
> internal list in the synchronized block

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to