Skip to content

Instantly share code, notes, and snippets.

@barik
Created November 21, 2013 14:55
Show Gist options
  • Save barik/7582978 to your computer and use it in GitHub Desktop.
Save barik/7582978 to your computer and use it in GitHub Desktop.
NameClashSameErasureNoOverride1.java:37: error: name clash: m(Integer) in NameClashSameErasureNoOverride1.B overrides a
method whose erasure is the same as another method, yet neither overrides the other
public void m(Integer l) {}
^
first method: m(Object) in NameClashSameErasureNoOverride1.A
second method: m(X) in I
where X is a type-variable:
X extends Object declared in interface I
1 error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment