1/* 2 * @test /nodynamiccopyright/ 3 * @bug 4984158 4 * @summary two inherited methods with same signature 5 * @author darcy 6 * 7 * @compile/fail/ref=InheritanceConflict3.out -XDrawDiagnostics InheritanceConflict3.java 8 */ 9 10package inheritance.conflict3; 11 12class X1<T> { 13 int f(T t) { throw null; } 14 void f(Object o) {} 15} 16 17class X2 extends X1 { 18} 19