2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 16:53:08 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2017-06-01 19:51:26 +00:00
|
|
|
* @bug 4756416 7170058
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary generics: erasure clash not detected
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-15 16:53:08 +00:00
|
|
|
* @compile/fail/ref=T4757416.out -XDrawDiagnostics T4757416.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T4756416 {
|
|
|
|
static class C<A> { A id ( A x) { return x; } }
|
|
|
|
interface I<A> { A id(A x); }
|
|
|
|
static class D extends C<String> implements I<Integer> {
|
|
|
|
public String id(String x) { return x; }
|
|
|
|
public Integer id(Integer x) { return x; }
|
|
|
|
}
|
|
|
|
}
|