1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/generics/rawOverride/7062745/T7062745neg.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,18 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 7062745 1.7 + * @summary Regression: difference in overload resolution when two methods are maximally specific 1.8 + * @compile/fail/ref=T7062745neg.out -XDrawDiagnostics T7062745neg.java 1.9 + */ 1.10 + 1.11 +import java.util.*; 1.12 + 1.13 +class T7062745neg { 1.14 + interface A { List<Number> getList(); } 1.15 + interface B { ArrayList getList(); } 1.16 + interface AB extends A, B {} 1.17 + 1.18 + void test(AB ab) { 1.19 + Number n = ab.getList().get(1); 1.20 + } 1.21 +}