Maurizio Cimadamore 1ae687fbd2 7020657: Javac rejects a fairly common idiom with raw override and interfaces
Name clash should not be reported if subinterface/implementing class resolves the clash by defining common overrider

Reviewed-by: jjg
2011-02-23 14:16:12 +00:00

24 lines
447 B
Java

/*
* @test /nodynamiccopyright/
* @bug 7020657 6985719
*
* @summary Javac rejects a fairly common idiom with raw override and interfaces
* @author Maurizio Cimadamore
* @compile/fail/ref=T7020657neg.out -XDrawDiagnostics T7020657neg.java
*
*/
import java.util.*;
class T7020657neg {
interface A {
int get(List<String> l);
}
interface B {
int get(List<Integer> l);
}
interface C extends A, B { }
}