package test; public interface OverrideWithErasedParameter { public interface Super { void foo(T t); void dummy(); // to avoid loading as SAM interface } public interface Sub extends Super { void foo(Object o); } }