2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-16 00:43:21 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2017-06-01 19:51:26 +00:00
|
|
|
* @bug 4951670 7170058
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary javac crash with improper overrider
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-16 00:43:21 +00:00
|
|
|
* @compile/fail/ref=ErasureClashCrash.out -XDrawDiagnostics ErasureClashCrash.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
interface Compar<T> {
|
|
|
|
int compareTo(T o);
|
|
|
|
}
|
|
|
|
abstract class ErasureClashCrash implements Compar<ErasureClashCrash> {
|
|
|
|
public int compareTo(Object o) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|