From 853cab2b5c43a9decf46eee6354f38894a905360 Mon Sep 17 00:00:00 2001 From: Harald Musum Date: Tue, 10 Jan 2023 18:09:15 +0100 Subject: Revert "Skip fallback class resolution for explicit bundle 2 [run-systemtest]" --- container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java b/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java index 9d023e2a7ca..4acdc3d544b 100644 --- a/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java +++ b/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java @@ -62,11 +62,6 @@ public class OsgiImpl implements Osgi { if (bundle != null) { return resolveFromBundle(spec, bundle); } else { - if (jdiscOsgi.isFelixFramework() && ! spec.bundle.equals(spec.classId)) { - // Bundle was explicitly specified, but not found. - throw new IllegalArgumentException("Could not find bundle " + spec.bundle + " to create a component with class '" - + spec.classId.getName() + ". " + bundleResolutionErrorMessage(spec.bundle)); - } return resolveFromThisBundleOrSystemBundle(spec); } } -- cgit v1.2.3