Maintenance Notice

The bugs.java.com site will be undergoing maintenance on 15th Dec 2017 21:00 PST to 16th Dec 2017 1:00 AM PST.
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.
JDK 7
7 b44Fixed
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