Update classloader if bundles are updated/uninstalled
-----------------------------------------------------

                 Key: SLING-1070
                 URL: https://issues.apache.org/jira/browse/SLING-1070
             Project: Sling
          Issue Type: Bug
          Components: Commons ClassLoader
            Reporter: Carsten Ziegeler
            Assignee: Carsten Ziegeler
             Fix For: Commons ClassLoader 0.9.0


Currently the commons classloader does not detect bundle updates, uninstalls 
etc. This may cause class cast exceptions downstream when the commons 
classloader has already loaded an old version of a class while the using code 
has the new version of this class.
The solution is to unregister and reregister the classloader whenever a "used" 
bundle is updated/uninstalled.
We should also cache the class loading process to avoid too many lookups (which 
are very slow). By using this cache we know from which bundled we already have 
loaded classes and if one of these bundles change we can handle this case. If 
any other bundle changes we don't have to do anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to