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

Specifications of stream flatMap methods should require mapped streams to be closed

XMLWordPrintable

        Stream.flatMap method takes the mapper argument which returns a Stream. There is no any information in javadoc whether a user should close this stream manually or it will be closed automatically after processing. It's very important in case of I/O based streams.

              psandoz Paul Sandoz
              anazarov Andrey Nazarov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: