Mon, 07 Feb 2011 18:10:13 +0000
7007615: java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123.
Summary: override clash algorithm is not implemented correctly
Reviewed-by: jjg
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6182950
4 * @summary methods clash algorithm should not depend on return type
5 * @author mcimadamore
6 * @compile/fail/ref=T6182950a.out -XDrawDiagnostics T6182950a.java
7 */
8 import java.util.List;
10 class T6182950a {
11 int m(List<String> l) {return 0;}
12 double m(List<Integer> l) {return 0;}
13 }