1/* 2 * @test /nodynamiccopyright/ 3 * @bug 7062745 4 * @summary Regression: difference in overload resolution when two methods are maximally specific 5 * @compile/fail/ref=T7062745neg.out -XDrawDiagnostics T7062745neg.java 6 */ 7 8import java.util.*; 9 10class T7062745neg { 11 interface A { List<Number> getList(); } 12 interface B { ArrayList getList(); } 13 interface AB extends A, B {} 14 15 void test(AB ab) { 16 Number n = ab.getList().get(1); 17 } 18} 19