2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 16:53:08 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4984158
|
|
|
|
* @summary two inherited methods with same signature
|
2008-04-09 12:41:45 +00:00
|
|
|
* @author gafter, Maurizio Cimadamore
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
2015-05-15 16:53:08 +00:00
|
|
|
* @compile/fail/ref=InheritanceConflict.out -XDrawDiagnostics InheritanceConflict.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package inheritance.conflict;
|
|
|
|
|
|
|
|
class A<T> {
|
|
|
|
void f(String s) {}
|
2008-04-09 12:41:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class B<T> extends A<T> {
|
2007-12-01 00:00:00 +00:00
|
|
|
void f(T t) {}
|
|
|
|
}
|
|
|
|
|
2008-04-09 12:41:45 +00:00
|
|
|
class C extends B<String> {
|
2007-12-01 00:00:00 +00:00
|
|
|
}
|