JDK-8003120 : ResourceManager.getApplicationResources() does not close InputStreams
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.naming
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-11-07
  • Updated: 2013-08-27
  • Resolved: 2012-11-07
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 b65Fixed
Related Reports
Relates :  
Description
com.sun.naming.internal.ResourceManager.getApplicationResources() does not close the input streams it gets from helper.getResources() and helper.getJavaHomeLibStream().

While they will eventually be garbage collected and finalised, not calling close() means that the file descriptors are open longer than they need to, potentially causing a descriptor limit to be reached.

See http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1197
Comments
It just one fix about closing file stream in finally statement. Developer does not provide new test or lable about "noreg-xx". SQE has reviewed the code and it makes sense. Dev should provide "noreg-trivial" for it but no response yet. Close it as verified
27-08-2013

Setting assignee.
10-04-2013