Why should I care that Java doesn’t have reified generics?

The thing that most commonly bites me is the inability to take advantage of multiple dispatch across multiple generic types. The following isn’t possible and there are many cases where it would be the best solution:

public void my_method(List<String> input) { ... }
public void my_method(List<Integer> input) { ... }

Leave a Comment