JDK-4175918 : URLConnection should define disconnect() method
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-09-23
  • Updated: 2009-05-27
  • Resolved: 2009-05-27
Related Reports
Duplicate :  
Description
java.net.URLConnection defined connect(), but there is no corresponding 
disconnect() method.

It would and has caused problems of not releasing critical system resources 
taken up by each connection. See bugs 4166799 and 4167874.

Comments
EVALUATION The main issues with this was addressed with the URLClassLoader.close() feature (CR 4167874).
27-05-2009