JDK-7082769 : FileInputStream/FileOutputStream/RandomAccessFile allow file descriptor be closed when still in use
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 6u26
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-08-24
  • Updated: 2014-11-19
  • Resolved: 2012-05-09
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 Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6-poolResolved 7u2Fixed 8 b08Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
SHORT SUMMARY: preClose0 fails with Bad file descriptor error when more than 
one stream holds reference to a native FileDescriptor on solaris/linux

INDICATORS:

Testcase link in BugDB report

COUNTER INDICATORS:
TRIGGERS:

Manual closing of output streams which contain reference to the same file 
descriptor. Solaris/Linux only.

KNOWN WORKAROUND:

PRESENT SINCE:

1.4.2 + 
HOW TO VERIFY:

Simple testcase.

NOTES FOR SE:

See Sun CR 6322678 for most recent changes in this area.

REGRESSION: No.

Comments
EVALUATION forward port from jdk6 with more thorough testcase included.
13-09-2011