langtools/test/tools/javac/generics/6985719/T6985719e.java
author mcimadamore
Mon, 15 Nov 2010 13:50:53 +0000
changeset 7214 26dfa4a69593
permissions -rw-r--r--
6985719: Alike methods in interfaces (Inheritance and Overriding) Summary: javac should report error when interface inherits unrelated method with same erasure Reviewed-by: jjg

/*
 * @test /nodynamiccopyright/
 * @bug     6985719
 * @summary Alike methods in interfaces (Inheritance and Overriding)
 * @author  mcimadamore
 * @compile/fail/ref=T6985719e.out -XDrawDiagnostics T6985719e.java
 */

import java.util.List;

class T6985719e {
    interface A { void f(List<String> ls); }
    interface B extends A { void f(List<Integer> ls); }
}