import java.util.*; public class MethodM2 { public static void main(String []argv) { List doubleList = new ArrayList(); List floatList = new ArrayList(); One o = new One(); o.m(new ArrayList()); Two t = new Two(); t.m(new ArrayList()); } } interface I { } class One implements I {} class Two implements I {} aspect X { public void I.m(List lz) {} // ok }