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.

Tags:

One Response to “Amusing discovery of the day”

  1. Yardena says:

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

Leave a Reply