Main.java:15: error: name clash: compareTo(A) in A overrides a method whose erasure is the same as another method, yet neither overrides the other
public int compareTo(A a) { return 0;}
^
first method: compareTo(Object) in A
second method: compareTo(T) in Comparable
where T is a type-variable:
T extends Object declared in interface Comparable
Main.java:17: error: name clash: compareTo(Object) in A and compareTo(T) in Comparable have the same erasure, yet neither overrides the other
public Integer compareTo(Object o) {
^
where T is a type-variable:
T extends Object declared in interface Comparable
2 errors