eclipse使用7.0编译项目报错:Duplicate methods named spliterator with the parameters
Duplicate methods named spliterator with the parameters () and () are inherited from the types Collection and Iterable
Duplicate methods named spliterator with the parameters () and () are inherited from the types Collection and Iterable
Duplicate methods named spliterator with the parameters () and () are inherited from the types Collection and Iterable
Duplicate methods named spliterator with the parameters () and () are inherited from the types Collection and Iterable
Duplicate methods named spliterator with the parameters () and () are inherited from the types List and Collection
具体的:
翻阅了不少英文overstackflow帖子,最后看到比较多的说法是,当前的eclipse不支持jdk8编译,导致的,仔细查看自己的eclipse确实只能最高到1.7来编译,
总结下,引起这些错误的原因:
1,使用了7.0编译,而7.0硬性的要求最低1.8的jdk;
2,自己的eclipse是2014年的eclipse -bundle集成的,最高支持1.7编译;
这个矛盾的存在,导致了项目中的这一大把红叉子。
总结下,引起这些错误的原因:
1,使用了7.0编译,而7.0硬性的要求最低1.8的jdk;
2,自己的eclipse是2014年的eclipse -bundle集成的,最高支持1.7编译;
这个矛盾的存在,导致了项目中的这一大把红叉子。