Amusing discovery of the day

Java bytecode lets you overload method names based on the return type as well as the argument types, even if the language doesn’t.


Comments

Yardena on 2007-12-29 21:40:00:

Yep, see Class#getMethod - bridge methods rely on this.