Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8180352 Add Stream.toList() method
  3. JDK-8257870

Release Note: Add Stream.toList() Method

    XMLWordPrintable

Details

    Description

      A new method `toList` has been added to the `java.util.Stream` interface. This introduces a potential source incompatibility with classes that implement or interfaces that extend the `Stream` interface and that also statically import a `toList` method from elsewhere, for example, `Collectors.toList`. References to such methods must be changed to use a qualified name instead of a static import.

      Attachments

        Activity

          People

            smarks Stuart Marks
            smarks Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: