Code review request: 7082769: FileInputStream/FileOutputStream/RandomAccessFile allow file descriptor be closed when still in use

Seán Coffey sean.coffey at
Thu Sep 8 17:11:26 UTC 2011

webrev :

Bug fix where we ensure that the fd object is not disposed of until all 
streams are closed out.

Testcase is a bulked up version of CR 6322678 (which wasn't committed  
at time of 6322678 fix). It includes create/close() calls for 
FileInputStream/FileOutputStream/RandomAccessFile which all reference 
the same file descriptor. Multi threaded access to the same file 
descriptor is also tested.

Typo fix also as per also 


More information about the core-libs-dev mailing list