Mon, 02 Sep 2013 22:38:36 +0100
8016177: structural most specific and stuckness
Reviewed-by: jjg, vromero
Contributed-by: maurizio.cimadamore@oracle.com
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 7020657 6985719
4 *
5 * @summary Javac rejects a fairly common idiom with raw override and interfaces
6 * @author Maurizio Cimadamore
7 * @compile/fail/ref=T7020657neg.out -XDrawDiagnostics T7020657neg.java
8 *
9 */
11 import java.util.*;
13 class T7020657neg {
14 interface A {
15 int get(List<String> l);
16 }
18 interface B {
19 int get(List<Integer> l);
20 }
22 interface C extends A, B { }
23 }