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)