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

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.

EVALUATION This bug has existed since at least 1.2.