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.
|