Remove not needed classload inside the stream handler as it could be used inside another classload which can cause a deadlock (FELIX-1035).
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@764190 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/URLHandlersStreamHandlerProxy.java b/framework/src/main/java/org/apache/felix/framework/URLHandlersStreamHandlerProxy.java
index e5ee777..b905ab5 100644
--- a/framework/src/main/java/org/apache/felix/framework/URLHandlersStreamHandlerProxy.java
+++ b/framework/src/main/java/org/apache/felix/framework/URLHandlersStreamHandlerProxy.java
@@ -437,9 +437,9 @@
// Create a simple service tracker for the framework.
tracker = m_action.invoke(m_action.getConstructor(
framework.getClass().getClassLoader().loadClass(
- URLHandlersServiceTracker.class.getName()),
+ "org.apache.felix.framework.URLHandlersServiceTracker"),
new Class[]{framework.getClass().getClassLoader().loadClass(
- Felix.class.getName()), String.class}),
+ "org.apache.felix.framework.Felix"), String.class}),
new Object[]{framework, filter});
// Cache the simple service tracker.