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