eclipse使用7.0编译项目报错:Duplicate methods named spliterator with the parameters

eclipse使用7.0编译项目报错:Duplicate methods named spliterator with the parameters
           适配7.0,那么首先当然是把项目的编译版本修改为7.0了,但是问题出现了,在6.0上还正常的一个警告都没有的项目在使用7.0编译后,有不少红叉子,报了不少错误,

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编译;
这个矛盾的存在,导致了项目中的这一大把红叉子。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值