JDK-6791458 : FileInputStream/RandomAccessFile.read leaks memory if invoked on closed stream with len > 8k
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: core-libs
  • Sub-Component: java.io
  • Priority: P3
  • Affected Version: 7
  • OS: generic
  • CPU: generic
  • Submit Date: 2009-01-08
  • Updated Date: 2010-04-02
  • Resolved Date: 2009-01-17
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7 b44Resolved
Description
As reported here:
 http://mail.openjdk.java.net/pipermail/core-libs-dev/2009-January/000978.html

if FileInputStream or RandomAccessFile.read is invoked with a byte[] and len > 8k on a closed stream then the method throws IOException without releasing the the memory allocated for the I/O.

Comments
EVALUATION This bug has existed since at least 1.2.
2009-01-09