incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1336961 - /sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
Date Thu, 10 May 2012 23:41:50 GMT
Author: cziegeler
Date: Thu May 10 23:41:50 2012
New Revision: 1336961

URL: http://svn.apache.org/viewvc?rev=1336961&view=rev
Log:
SLING-2438 : Class might never be loaded if the bundle is in state resolved on the first attempt

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

Modified: sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java?rev=1336961&r1=1336960&r2=1336961&view=diff
==============================================================================
--- sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
(original)
+++ sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
Thu May 10 23:41:50 2012
@@ -142,9 +142,6 @@ class PackageAdminClassLoader extends Cl
             final Bundle bundle = this.findBundleForPackage(getPackageFromResource(name));
             if ( bundle != null ) {
                 e = bundle.getResources(name);
-                if ( e != null && e.hasMoreElements() ) {
-                    this.factory.addUsedBundle(bundle);
-                }
             }
         }
         return e;
@@ -164,7 +161,6 @@ class PackageAdminClassLoader extends Cl
             if ( bundle != null ) {
                 url = bundle.getResource(name);
                 if ( url != null ) {
-                    this.factory.addUsedBundle(bundle);
                     urlCache.put(name, url);
                 }
             }



Mime
View raw message