class List {} class Base { void foo(List[] l, String s) {} } class Inheritor extends Base { void foo(List[] l, String s) {} { new Inheritor().foo(new List[]{new List()}, "a"); } }