JDK-5100715 : javac leaves secondary source files open during compilation
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2004-09-11
  • Updated: 2004-11-10
  • Resolved: 2004-11-05
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 6
6Resolved
Related Reports
Duplicate :  
Description
com.sun.tools.javac.jvm.ClassReader calls any sourceCompleter (clients that fill-in class symbols from source) with a InputStream it opened but never closes.  For large projects, this has the potential to exceed the maximum number of open files supported by the underlying operating system.

Paths.addJarClassPath also leaves jar files open.
###@###.### 10/27/04 20:52 GMT

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon mustang
15-09-2004

WORK AROUND Partial project compilations, so that fewer secondary source files need to be opened.
15-09-2004

SUGGESTED FIX See attached diffs file, which uses a finally block to guarantee that all InputStreams are closed.
15-09-2004

EVALUATION This is a bug. We should consider putting it in an update release. ###@###.### 2004-09-14
14-09-2004