mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8305748: Clarify reentrant behavior of close() in FileInputStream, FileOutputStream, and RandomAccessFile
Reviewed-by: alanb, bpb
This commit is contained in:
parent
1bca05eace
commit
0198afca3a
4 changed files with 17 additions and 1 deletions
|
@ -386,6 +386,11 @@ public class FileOutputStream extends OutputStream
|
|||
* Subclasses requiring that resource cleanup take place after a stream becomes
|
||||
* unreachable should use the {@link java.lang.ref.Cleaner} mechanism.
|
||||
*
|
||||
* <p>
|
||||
* If this stream has an associated channel then this method will close the
|
||||
* channel, which in turn will close this stream. Subclasses that override
|
||||
* this method should be prepared to handle possible reentrant invocation.
|
||||
*
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*
|
||||
* @revised 1.4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue