Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-4419

Cannot infer type argument(s) for <R> flatMap(Function<? super T,? extends Stream<? extends R>>)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 3.8.3.RELEASE
    • Fix Version/s: None
    • Component/s: EDITING
    • Labels:
    • Environment:
      win7x64 jdk1.8.0_111x64

      Description

      @Test
      public void testFlatMap() {
      List<String> ls = Arrays.asList("we are", "doing a", "good", " thing !");
      ls.stream().flatMap(s -> Stream.of(s.split(" "))).filter(word -> word.length() > 1).forEach(e ->

      { System.out.println(e); }

      );
      }

      the sts3.8.3 64bit compiles error "Cannot infer type argument(s) for <R> flatMap(Function<? super T,? extends Stream<? extends R>>)"

        Attachments

          Activity

            People

            Assignee:
            mlippert Martin Lippert
            Reporter:
            phxism phxism
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: