You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by cs...@apache.org on 2015/08/12 14:17:30 UTC
karaf git commit: [KARAF-3917] Do not filter bundles when just
getting the context
Repository: karaf
Updated Branches:
refs/heads/master 8e7306af2 -> e1c1ede07
[KARAF-3917] Do not filter bundles when just getting the context
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/e1c1ede0
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/e1c1ede0
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/e1c1ede0
Branch: refs/heads/master
Commit: e1c1ede07a51d4930db6baabce01edf9f695af58
Parents: 8e7306a
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Wed Aug 12 14:14:01 2015 +0200
Committer: Christian Schneider <ch...@die-schneider.net>
Committed: Wed Aug 12 14:14:01 2015 +0200
----------------------------------------------------------------------
.../org/apache/karaf/bundle/core/internal/BundleServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf/blob/e1c1ede0/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleServiceImpl.java
----------------------------------------------------------------------
diff --git a/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleServiceImpl.java b/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleServiceImpl.java
index 9336dde..cb5d73d 100644
--- a/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleServiceImpl.java
+++ b/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleServiceImpl.java
@@ -157,7 +157,7 @@ public class BundleServiceImpl implements BundleService {
if (context == null || context.trim().isEmpty()) {
return bundleContext;
} else {
- List<Bundle> bundles = doSelectBundles(bundleContext, Collections.singletonList(context), false);
+ List<Bundle> bundles = new BundleSelectorImpl(bundleContext).selectBundles(Collections.singletonList(context), false);
if (bundles.isEmpty()) {
throw new IllegalArgumentException("Context " + context + " does not evaluate to a bundle");
} else if (bundles.size() > 1) {