jdk/src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java
changeset 40938 5b0977acc842
parent 31061 fead7d86d75f
child 43991 b2661845440c
--- a/jdk/src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java	Tue Sep 13 17:00:06 2016 +0530
+++ b/jdk/src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java	Tue Sep 13 14:47:29 2016 +0100
@@ -125,7 +125,9 @@
              * to get the jarFile, and set it as our permission.
              */
             if (getUseCaches()) {
+                boolean oldUseCaches = jarFileURLConnection.getUseCaches();
                 jarFileURLConnection = factory.getConnection(jarFile);
+                jarFileURLConnection.setUseCaches(oldUseCaches);
             }
 
             if ((entryName != null)) {