ModuleReader::list specification should suggest closing the returned stream

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 20
    • Affects Version/s: 20
    • Component/s: 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.

            Assignee:
            Ryan Ernst
            Reporter:
            Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: