1049N/A/*
1049N/A * @test /nodynamiccopyright/
1049N/A * @bug 7062745
1049N/A * @summary Regression: difference in overload resolution when two methods are maximally specific
1049N/A * @compile/fail/ref=T7062745neg.out -XDrawDiagnostics T7062745neg.java
1049N/A */
1049N/A
1049N/Aimport java.util.*;
1049N/A
1049N/Aclass T7062745neg {
1049N/A interface A { List<Number> getList(); }
1049N/A interface B { ArrayList getList(); }
1049N/A interface AB extends A, B {}
1049N/A
1049N/A void test(AB ab) {
1049N/A Number n = ab.getList().get(1);
1049N/A }
1049N/A}