package test; public interface SubstitutedClassParameters { public interface Super1 { void foo(T p); void dummy(); // to avoid loading as SAM interface } public interface Super2 { void foo(E p); void dummy(); // to avoid loading as SAM interface } public interface Sub extends Super1, Super2 { void foo(String p); } }