1/* 2 * @test /nodynamiccopyright/ 3 * @bug 4951670 7170058 4 * @summary javac crash with improper overrider 5 * @author gafter 6 * 7 * @compile/fail/ref=ErasureClashCrash.out -XDrawDiagnostics ErasureClashCrash.java 8 */ 9 10interface Compar<T> { 11 int compareTo(T o); 12} 13abstract class ErasureClashCrash implements Compar<ErasureClashCrash> { 14 public int compareTo(Object o) { 15 return 1; 16 } 17} 18