-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Medium
-
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