906N/A/*
906N/A * @test /nodynamiccopyright/
906N/A * @bug 7022054
906N/A *
906N/A * @summary Invalid compiler error on covariant overriding methods with the same erasure
906N/A * @compile/fail/ref=T7022054neg2.out -XDrawDiagnostics T7022054neg2.java
906N/A *
906N/A */
906N/A
906N/Aclass T7022054neg2 {
906N/A static class A {
906N/A static A m(String s) { return null; }
906N/A }
906N/A static class B extends A {
906N/A static <X extends String> A m(X s) { return null; }
906N/A }
906N/A}