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

ModuleReader::list specification should suggest closing the returned stream

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 20
    • 20
    • core-libs

      JDK-8290316 identifies a number of unclosed directory streams in the
      implementation. The solution to such streams is uncontentious - close
      them - since the streams are internal to the implementation. However,
      `ModuleReader::list` (e.g. ModuleReferences.ExplodedModuleReader::list)
      returns its stream to the caller. The intention of the `list` method is
      to allow for lazy streams. The `list` method should be re-examined to
      determine if a clarification to the spec is required.

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

              Created:
              Updated:
              Resolved: