Java 1.8 stream example instrumentation fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Medium
    • 3.2.2
    • Affects Version/s: 3.2.2
    • Component/s: Instrumentation
    • None

      public class Foo {
          String num;
      
          public Set<String> create() {
              List<Foo> l = new ArrayList<>();
              return l.stream().map(e -> e.num).collect(Collectors.toSet());
          }
      }
      

      Fails with
      incompatible types: inference variable T has incompatible bounds
      [ERROR] equality constraints: java.lang.String
      [ERROR] lower bounds: java.lang.Object

            Assignee:
            Marek Parfianowicz
            Reporter:
            Deleted Account (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: