RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed [v2]

Brent Christian bchristi at openjdk.org
Fri Apr 14 23:13:33 UTC 2023


On Fri, 14 Apr 2023 22:27:26 GMT, Brent Christian <bchristi at openjdk.org> wrote:

>> With the removal of the AltFinalizer mechanism from `FileInputStream` and `FileOutputStream` in [JDK-8192939](https://bugs.openjdk.org/browse/JDK-8192939), this portion of the Implementation Requirement in the class JavaDoc is no longer true:
>> 
>>> If this FileOutputStream has been subclassed and the close() method has been overridden, the close() method will be called when the FileInputStream is unreachable."
>> 
>> The class doc, and the doc for close(), are updated to correctly reflect current behavior, and guidance for subclasses is clarified.
>
> Brent Christian has updated the pull request incrementally with one additional commit since the last revision:
> 
>   updates, per review comments

In my mind, this is covered by the existing CSR ([8212050](https://bugs.openjdk.org/browse/JDK-8212050)) from JDK 12.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13437#issuecomment-1509381396


More information about the core-libs-dev mailing list