-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 12
-
Component/s: core-libs
-
Verified
The `finalize` methods of `FileInputStream` and `FileOutputStream` were deprecated for removal in JDK 9. They have been removed in this release.
The` java.lang.ref.Cleaner` has been implemented since JDK 9 as the primary mechanism to close file descriptors that are no longer reachable from `FileInputStream` and `FileOutputStream`. The recommended approach to close files is to explicitly call `close` or to use `try-with-resources`.
The` java.lang.ref.Cleaner` has been implemented since JDK 9 as the primary mechanism to close file descriptors that are no longer reachable from `FileInputStream` and `FileOutputStream`. The recommended approach to close files is to explicitly call `close` or to use `try-with-resources`.