--- a/jdk/src/share/classes/sun/misc/URLClassPath.java Sat Jun 04 06:52:01 2011 -0700
+++ b/jdk/src/share/classes/sun/misc/URLClassPath.java Wed Jun 08 10:56:11 2011 +0100
@@ -532,15 +532,11 @@
uc = url.openConnection();
InputStream in = uc.getInputStream();
if (uc instanceof JarURLConnection) {
- /* JarURLConnection.getInputStream() returns a separate
- * instance on each call. So we have to close this here.
- * The jar file cache will keep the file open.
- * Also, need to remember the jar file so it can be closed
+ /* Need to remember the jar file so it can be closed
* in a hurry.
*/
JarURLConnection juc = (JarURLConnection)uc;
jarfile = juc.getJarFile();
- in.close();
}
} catch (Exception e) {
return null;