RFR 8192939: Remove Finalize methods from FileInputStream and FileOutputStream

Mandy Chung mandy.chung at oracle.com
Thu Oct 11 19:55:30 UTC 2018



On 10/11/18 9:58 AM, Roger Riggs wrote:
> The finalizer methods of FileInputStream and FileOutputStream were 
> deprecated for removal
> in JDK 9 and its time to remove them and the alternate mechanism to 
> call close
> when the streams are found to be unreachable.  The Cleaner has been 
> used since JDK 9 to
> close file descriptors that become unreferenced.
>
> Webrev:
> http://cr.openjdk.java.net/~rriggs/webrev-io-finalize-8192939/index.html
>
> CSR:
>   https://bugs.openjdk.java.net/browse/JDK-8212050

Looks good.

Mandy


More information about the core-libs-dev mailing list