import java.util.List; abstract class B { abstract void foo(List> x); void bar(List x){ foo(x); } }