felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1763773 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
Date Fri, 07 Oct 2016 14:52:42 GMT
Author: gnodet
Date: Fri Oct  7 14:52:41 2016
New Revision: 1763773

URL: http://svn.apache.org/viewvc?rev=1763773&view=rev
Log:
[FELIX-5372] BundleWiring#getClassLoader should return null for fragments

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java?rev=1763773&r1=1763772&r2=1763773&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java Fri
Oct  7 14:52:41 2016
@@ -681,7 +681,7 @@ public class BundleWiringImpl implements
     @Override
     public ClassLoader getClassLoader()
     {
-        if (m_isDisposed)
+        if (m_isDisposed || Util.isFragment(m_revision))
         {
             return null;
         }



Mime
View raw message