incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r922272 - /sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
Date Fri, 12 Mar 2010 14:28:12 GMT
Author: cziegeler
Date: Fri Mar 12 14:28:11 2010
New Revision: 922272

URL: http://svn.apache.org/viewvc?rev=922272&view=rev
Log:
SLING-1435 :  After a NoClassDefError classes are still not found even if they have been installed
in the meantime with Java 6

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

Modified: sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java?rev=922272&r1=922271&r2=922272&view=diff
==============================================================================
--- sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
(original)
+++ sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
Fri Mar 12 14:28:11 2010
@@ -108,11 +108,13 @@ public class Activator implements Synchr
      * @see org.osgi.framework.BundleListener#bundleChanged(org.osgi.framework.BundleEvent)
      */
     public void bundleChanged(BundleEvent event) {
-        boolean reload = false;
+        final boolean reload;
         if ( event.getType() == BundleEvent.RESOLVED ) {
             reload = this.service.hasUnresolvedPackages(event.getBundle());
-        } else if ( this.service.isBundleUsed(event.getBundle().getBundleId()) ) {
-            reload = true;
+        } else if ( event.getType() == BundleEvent.UNRESOLVED ) {
+            reload = this.service.isBundleUsed(event.getBundle().getBundleId());
+        } else {
+            reload = false;
         }
         if ( reload ) {
             this.unregisterManagerFactory();



Mime
View raw message