Menu

#47 Missing methods that have same signature

open
7
2012-09-15
2009-05-19
No

Classfile assumes that all methods have different signatures. When two methods differ only by their return type, one ends up hiding the other. It should at least issue a warning when such collisions occur.

Discussion

  • Jean Tessier

    Jean Tessier - 2009-06-15

    This is mainly caused by "bridge" methods that the compiler generates automatically to deal with type-safety issues. A warning is not enough. The software must handle these methods correctly. It means that indexing solely by signature is not enough.

     

Log in to post a comment.