[OpenJDK 2D-Dev]  RFR JDK-6591280: getting IPP connection causes disabling jar caches
Jayathirth D V
jayathirth.d.v at oracle.com
Mon Jul 25 15:48:30 UTC 2016
Changes are looking fine.
From: Prasanta Sadhukhan
Sent: Monday, July 25, 2016 3:28 PM
To: Philip Race; 2d-dev
Subject: [OpenJDK 2D-Dev]  RFR JDK-6591280: getting IPP connection causes disabling jar caches
Please review a fix for jdk9 where it is seen that we are unnecessarily disabling jar caching for entire JVM execution
when a IPPConnection is established, which is wrong.
When IPPService.getIPPConnection(URL url) is called, we call connection.setDefaultUsesCaches(false) [in addition to connection.setUseCaches(false);]
where "connection" is instance of HttpUrlConnection.
Calling this setDefaultUsesCaches(false) will result in disabling URLConnection's useCaches flag and as spec states "This flag applies to the next, and all following URLConnections that are created"
so jar caching will be disabled for subsequent URLConnections too.
Proposed fix is to remove this setting of disabling jvm-wide jar caching.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the 2d-dev