--- 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)) {