test/tools/javac/generics/7020657/T7020657neg.java

changeset 889
015dc9a63efc
parent 0
959103a6100f
equal deleted inserted replaced
884:75e25df50873 889:015dc9a63efc
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 */
10
11 import java.util.*;
12
13 class T7020657neg {
14 interface A {
15 int get(List<String> l);
16 }
17
18 interface B {
19 int get(List<Integer> l);
20 }
21
22 interface C extends A, B { }
23 }

mercurial