United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7082769 FileInputStream/FileOutputStream/RandomAccessFile allow file descriptor be closed when still in use
JDK-7082769 : FileInputStream/FileOutputStream/RandomAccessFile allow file descriptor be closed when still in use

Details
Type:
Bug
Submit Date:
2011-08-24
Status:
Closed
Updated Date:
2012-05-09
Project Name:
JDK
Resolved Date:
2012-05-09
Component:
core-libs
OS:
generic
Sub-Component:
java.io
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u26
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:
Relates:
Relates:

Sub Tasks

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.
                                     
2011-09-13



Hardware and Software, Engineered to Work Together