Sorry if this is a duplicate question, however, I was not able to find the answer after searching for a while.
So after all this time Java has had generics be a run time resolution scope instead of a compile time scope like C#/.NET. I am trying to figure out the reason why the Java community has never updated to switch generics to a compile time resolution. The performance benefits would be particularly large, especially in embedded devices and Android. Thanks for any insights!
Thanks for the comments. I think I am phrasing my question poorly then. I guess what I mean is why are my generics constantly casting at runtime instead of just replacing the proper type in place at runtime. So maybe why is type erasure necessary? Would be a better question.