Java Type Erasure

  • No runtime overhead
  • Implement generics
  1. Replace all type parameters (T) with
    1. bounds (T extends bounds) or
    2. Object
  2. Type casts
  3. Generate bridge methods to preserve polymorphism in extended generic types