mcimadamore@252: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@252: * @bug 6182950 mcimadamore@252: * @summary methods clash algorithm should not depend on return type mcimadamore@252: * @author mcimadamore mcimadamore@252: * @compile/fail/ref=T6182950b.out -XDrawDiagnostics T6182950b.java mcimadamore@252: */ mcimadamore@252: import java.util.List; mcimadamore@252: mcimadamore@252: class T6182950b { mcimadamore@252: static class A { mcimadamore@252: int m(List l) {return 0;} mcimadamore@252: } mcimadamore@252: static class B extends A { mcimadamore@252: double m(List l) {return 0;} mcimadamore@252: } mcimadamore@252: }