Code review request: 7082769: FileInputStream/FileOutputStream/RandomAccessFile allow file descriptor be closed when still in use
Seán Coffey
sean.coffey at oracle.com
Thu Sep 8 17:11:26 UTC 2011
http://bugs.sun.com/view_bug.do?bug_id=7082769
webrev : http://cr.openjdk.java.net/~coffeys/webrev.7082769.7087019.jdk8/
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 http://bugs.sun.com/view_bug.do?bug_id=7087019 also
included.
regards,
Sean.
More information about the core-libs-dev
mailing list