package test; import java.util.Comparator; public interface InheritedSameAdaptersWithSubstitution { public interface Super1 { void foo(Comparator r); } public interface Super2 { void foo(Comparator r); } public interface Super2Substituted extends Super2 { } public interface Sub extends Super1, Super2Substituted { } }