Using the following simple class, I get a java: Duplicate methods named spliterator with the parameters () and () are inherited from the types java.util.List<T> and java.lang.Iterable<T> error java: Duplicate methods named spliterator with the parameters () and () are inherited from the types java.util.List<T> and java.lang.Iterable<T> when using the Eclipse compiler in IDEA with JDK 8:
public class Java8Test { public static interface Traverable<T> extends Iterable<T> {} public static interface List<T> extends Traverable<T>, java.util.List<T> {} }
If you change the compiler to javac, then there is no error. The error also disappeared when switching to JDK 6 with the eclipse compiler.
IDEA Version: 12.1.5
source share