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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P3
    • Resolution: Delivered
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: core-libs
    • Subcomponent:
    • Verification:
      Verified

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved: