geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1095603 - /geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceHelper.java
Date Thu, 21 Apr 2011 06:29:47 GMT
Author: xuhaihong
Date: Thu Apr 21 06:29:46 2011
New Revision: 1095603

URL: http://svn.apache.org/viewvc?rev=1095603&view=rev
Log:
Pass the native bundle instance for wired bundles calculation

Modified:
    geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceHelper.java

Modified: geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceHelper.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceHelper.java?rev=1095603&r1=1095602&r2=1095603&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceHelper.java
(original)
+++ geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceHelper.java
Thu Apr 21 06:29:46 2011
@@ -112,7 +112,7 @@ public class BundleResourceHelper {
     
     private synchronized LinkedHashSet<Bundle> getWiredBundles() {
         if (wiredBundles == null) {
-            wiredBundles = BundleUtils.getWiredBundles(bundle);
+            wiredBundles = BundleUtils.getWiredBundles((bundle instanceof DelegatingBundle)
? ((DelegatingBundle) bundle).getMainBundle() : bundle);
         }
         return wiredBundles;
     }



Mime
View raw message