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

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

    Details

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  psandoz Paul Sandoz
                  Reporter:
                  anazarov Andrey Nazarov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: