United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8003120 : ResourceManager.getApplicationResources() does not close InputStreams

Details
Type:
Bug
Submit Date:
2012-11-07
Status:
Closed
Updated Date:
2013-08-27
Project Name:
JDK
Resolved Date:
2012-11-07
Component:
core-libs
OS:
Sub-Component:
javax.naming
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports
Relates:

Sub Tasks

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
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f51943263267
User:  andrew
Date:  2012-11-07 21:16:22 +0000

                                     
2012-11-07
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/f51943263267
User:  lana
Date:  2012-11-13 19:08:40 +0000

                                     
2012-11-13
Setting assignee.
                                     
2013-04-10
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  
                                     
2013-08-27



Hardware and Software, Engineered to Work Together