felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r740323 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
Date Tue, 03 Feb 2009 15:39:50 GMT
Author: rickhall
Date: Tue Feb  3 15:39:49 2009
New Revision: 740323

URL: http://svn.apache.org/viewvc?rev=740323&view=rev
Log:
Modified PackageAdmin.getBundle(Class) to return the system bundle for
packages exported by the system bundle; this had previously been the case
until Felix 1.4.0, not sure why it changed. (FELIX-915)

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

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java?rev=740323&r1=740322&r2=740323&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java Tue Feb  3 15:39:49
2009
@@ -2641,7 +2641,15 @@
                 }
             }
         }
-        return null;
+        try
+        {
+            return (m_extensionManager.getModule().getClassByDelegation(clazz.getName())
== clazz)
+                ? this : null;
+        }
+        catch(ClassNotFoundException ex)
+        {
+            return null;
+        }
     }
 
     /**



Mime
View raw message