Fix a small issue where relative urls would not be resolved when override is enabled. Furthermore, improve the performance of the stream handler proxy a bit.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@711485 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 7cc5a83..57a6c54 100644
--- a/framework/src/main/java/org/apache/felix/framework/URLHandlersStreamHandlerProxy.java
+++ b/framework/src/main/java/org/apache/felix/framework/URLHandlersStreamHandlerProxy.java
@@ -281,10 +281,8 @@
{
try
{
- URL test = new URL(null, toExternalForm(url, svc), (URLStreamHandler) svc);
+ URL test = new URL(url, spec, (URLStreamHandler) svc);
- m_action.invoke(PARSE_URL,
- svc, new Object[]{test, spec, new Integer(start), new Integer(limit)});
super.setURL(url, test.getProtocol(), test.getHost(), test.getPort(),test.getAuthority(),
test.getUserInfo(), test.getPath(), test.getQuery(), test.getRef());
}
@@ -534,4 +532,4 @@
throw ex;
}
}
-}
\ No newline at end of file
+}