Eclipse Neon.1generics编译错误:无法推断类型参数

MWE :

import java.util.Comparator; import java.util.TreeMap; import static java.util.Arrays.asList; import static java.util.stream.Collectors.groupingBy; import static java.util.stream.Collectors.mapping; import static java.util.stream.Collectors.toList; public class ShouldCompileInEclipse { void doesNotCompileInEclipse() { asList("eclipse").stream() .collect(groupingBy( this::function, () -> new TreeMap(Comparator.reverseOrder()), mapping(this::function, toList()))); } String function(String s) { return s; } } 

为什么代码不能在Eclipse下编译?

 Version: Neon.1a Release (4.6.1) Build id: 20161007-1200 

错误是:

 Cannot infer type arguments for TreeMap 

它由javac 1.8.0_102成功编译