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

StringJoiner example in class description not in sync with streams API

    Details

    • Subcomponent:
    • Resolved In Build:
      b94
    • Verification:
      Verified

      Description

      Specification for
      http://download.java.net/jdk8/docs/api/java/util/StringJoiner.html

      in b89 (initial) spec contains the following example:

       * List<Person> people = ...
       * String commaSeparatedNames =
       * people.map(p -> p.getName()).into(new StringJoiner(", ")).toString();

      there is no method Stream.into() currently so this code does not compile.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                psandoz Paul Sandoz
                Reporter:
                dbessono Dmitry Bessonov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: