Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080225 FileInput/OutputStream/FileChannel cleanup should be improved
  3. JDK-8193090

Release Note: Relax FileInputStream/FileOutputStream Requirement for finalize to Call close

XMLWordPrintable

    • Verified

      The specifications of `FileInputStream` and `FileOutputStream` are changed to require calling the `close` method when "there are no more references to the stream" only in the case where it would affect a subclass that has overridden the `close` method. The stream's `finalize` method does not call `close` directly in this case. In other cases, the release of resources is implementation specific. Refer to the `FileInputStream` and `FileOutputStream` documentation for recommendations.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: