class Foo { void m(ArrayListImpl l) { l.size(); } } class ArrayListImpl extends java.util.ArrayList {}