The erasure is the method signature that you're left with after generic parameters have been erased.
Let's say you have the following two methods:
This is not allowed, because the generic parameter T gets replaced by Object during erasure, leaving the method with the exact same signature as the second method. This however *is* allowed:
The generic parameter gets replaced by String, so this method successfully overloads the one with the Object parameter.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop