Exported package filter directives should only impact bundle to
bundle delegation, not Bundle.loadClass(). (FELIX-2950)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1153276 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java b/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
index f586fba..f691c35 100644
--- a/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
+++ b/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
@@ -1271,7 +1271,7 @@
dexFileClassLoadClass = null;
}
m_dexFileClassConstructor = dexFileClassConstructor;
- m_dexFileClassLoadDex= dexFileClassLoadDex;
+ m_dexFileClassLoadDex = dexFileClassLoadDex;
m_dexFileClassLoadClass = dexFileClassLoadClass;
}
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java
index 186f3e8..82dee87 100644
--- a/framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -66,6 +66,7 @@
import org.osgi.framework.wiring.BundleCapability;
import org.osgi.framework.wiring.BundleRevision;
import org.osgi.framework.wiring.BundleRevisions;
+import org.osgi.framework.wiring.BundleWiring;
import org.osgi.framework.wiring.FrameworkWiring;
import org.osgi.service.packageadmin.ExportedPackage;
import org.osgi.service.startlevel.StartLevel;
@@ -1741,7 +1742,7 @@
}
}
return ((BundleWiringImpl)
- bundle.adapt(BundleRevision.class).getWiring()).getClassByDelegation(name);
+ bundle.adapt(BundleWiring.class)).getClassLoader().loadClass(name);
}
/**