2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 23:53:42 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4984158
|
|
|
|
* @summary two inherited methods with same signature
|
|
|
|
* @author darcy
|
|
|
|
*
|
2015-05-15 23:53:42 +00:00
|
|
|
* @compile/fail/ref=InheritanceConflict3.out -XDrawDiagnostics InheritanceConflict3.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package inheritance.conflict3;
|
|
|
|
|
|
|
|
class X1<T> {
|
|
|
|
int f(T t) { throw null; }
|
|
|
|
void f(Object o) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
class X2 extends X1 {
|
|
|
|
}
|