It's a Java Bug# Java - 爪哇娇娃
F*n
1 楼
After some research, it seems that the "type erasure" problem is due to a
Java bug: javac should NOT be able to compile two methods with same
signature but different return types.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6182950
According to the link below, this misbehavior is fixed in some Eclipse
version, which is correct while javac is wrong.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273862
Java bug: javac should NOT be able to compile two methods with same
signature but different return types.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6182950
According to the link below, this misbehavior is fixed in some Eclipse
version, which is correct while javac is wrong.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273862