commit | 43889fab7fe2ca2e244f85e152af52a862c15f79 | [log] [tgz] |
---|---|---|
author | Karl Pauls <pauls@apache.org> | Thu Mar 10 10:49:19 2011 +0000 |
committer | Karl Pauls <pauls@apache.org> | Thu Mar 10 10:49:19 2011 +0000 |
tree | b009b21a5586e427e0ee4e931df40ed289364beb | |
parent | cf5d89da2013a1d2e68256889305ac263475b710 [diff] |
Delay throwing exceptions if a extension bundle can't find a resource to make java6 update24 happy (FELIX-2877). git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1080178 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java b/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java index bb57b0c..46c83a3 100644 --- a/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java +++ b/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
@@ -506,7 +506,13 @@ } } - throw new IOException("Resource not provided by any extension!"); + return new URLConnection(url) + { + public void connect() throws IOException + { + throw new IOException("Resource not provided by any extension!"); + } + }; } protected InetAddress getHostAddress(URL u)