JDK-7059170 : Assume availablility of URLClassLoader.close
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-06-24
  • Updated: 2013-04-19
  • Resolved: 2013-03-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b86Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Code inside javac reflectively probes at ClassLoader objects to see if they are Closeable, which some are as of JDK 7.  If JDK 7 or later could be assumed, the code for such checks could be simplified.

Comments
EVALUATION The code will already avoid the probing if the ClassLoader is Closeable. We need to keep backwards compatibility for a while for off-brand usage of javac.
28-07-2011