JDK-4851466 : URLConnection.setDefaultUseCaches() should be static
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-04-21
  • Updated: 2003-04-23
  • Resolved: 2003-04-23
Description

Name: nt126004			Date: 04/21/2003


FULL PRODUCT VERSION :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

FULL OS VERSION :
win xp

A DESCRIPTION OF THE PROBLEM :
URLConnection.setDefaultUseCaches() should be a static method on the class, and it is not. There is no way to turn off caching globally. The member variable is static, but there is no static method.


REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 184193) 
======================================================================

Comments
EVALUATION setDefaultUseCaches() should have been made static, but it can't be changed now without impacting binary compatibility. The effect of it being non static is just that you need to create an instance before invoking it, which is not such a severe problem. In other words, there is not sufficient justification for adding a new static method that does it exactly the right way. So we will not be able to fix this. ###@###.### 2003-04-23
23-04-2003