Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8290359

Ensure that all directory streams are closed in jdk.link

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 17, 20
    • tools
    • b08

      There are a number of places where the internal implementation
      indirectly uses directory streams but neglects to explicitly close them.
      It is recommended to always close directory streams to ensure that any
      resources held for the open directory are freed.

      The usage of directory streams (not closed) is through the following
      calls: Files::list, Files::walk, and Files::find. Specifically a number
      of unclosed calls are in DefaultImageBuilder, JmodTask, and DirArchive.

            rjernst Ryan Ernst
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: