incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r794219 - /sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/DynamicClassLoaderManagerImpl.java
Date Wed, 15 Jul 2009 10:34:28 GMT
Author: cziegeler
Date: Wed Jul 15 10:34:28 2009
New Revision: 794219

URL: http://svn.apache.org/viewvc?rev=794219&view=rev
Log:
Fix class cast.

Modified:
    sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/DynamicClassLoaderManagerImpl.java

Modified: sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/DynamicClassLoaderManagerImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/DynamicClassLoaderManagerImpl.java?rev=794219&r1=794218&r2=794219&view=diff
==============================================================================
--- sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/DynamicClassLoaderManagerImpl.java
(original)
+++ sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/DynamicClassLoaderManagerImpl.java
Wed Jul 15 10:34:28 2009
@@ -86,7 +86,8 @@
             loaders[0] = this.pckAdminCL;
             int index = 1;
             for(final ServiceReference ref : refs) {
-                loaders[index] = (ClassLoader) this.getService(ref);
+                final DynamicClassLoaderProvider provider = (DynamicClassLoaderProvider)this.getService(ref);
+                loaders[index] = provider.getClassLoader();
                 index++;
             }
             // and now use new array



Mime
View raw message