sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-commons-classloader] 12/15: SLING-2438 : Class might never be loaded if the bundle is in state resolved on the first attempt
Date Tue, 07 Nov 2017 09:21:01 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.classloader-1.3.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-classloader.git

commit 2c3c56ebb38a618682bc7b78dd8e7c469630e0c3
Author: Carsten Ziegeler <cziegeler@apache.org>
AuthorDate: Thu May 10 23:41:50 2012 +0000

    SLING-2438 : Class might never be loaded if the bundle is in state resolved on the first
attempt
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/classloader@1336961
13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/commons/classloader/impl/PackageAdminClassLoader.java       | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
b/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
index 8985d3c..6d21a66 100644
--- a/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
+++ b/src/main/java/org/apache/sling/commons/classloader/impl/PackageAdminClassLoader.java
@@ -142,9 +142,6 @@ class PackageAdminClassLoader extends ClassLoader {
             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 ClassLoader {
             if ( bundle != null ) {
                 url = bundle.getResource(name);
                 if ( url != null ) {
-                    this.factory.addUsedBundle(bundle);
                     urlCache.put(name, url);
                 }
             }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message