2011-03-03 17:34:58 +00:00
|
|
|
/*
|
2020-12-30 17:20:54 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2011-03-03 17:34:58 +00:00
|
|
|
* @bug 7022054
|
|
|
|
*
|
|
|
|
* @summary Invalid compiler error on covariant overriding methods with the same erasure
|
2022-09-01 16:43:50 +00:00
|
|
|
*
|
2012-11-17 19:01:03 +00:00
|
|
|
* @compile/fail/ref=T7022054pos2.out -XDrawDiagnostics T7022054pos2.java
|
2011-03-03 17:34:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T7022054pos2 {
|
|
|
|
static class A {
|
|
|
|
static A m(String s) { return null; }
|
|
|
|
}
|
|
|
|
static class B extends A {
|
|
|
|
static <X extends B> X m(String s) { return null; }
|
|
|
|
}
|
|
|
|
}
|