Hi all.
Managed to find a link which talks about type erasure. Or more specifically, it talks a bit about how you can avoid type erasure in generics. According to the link, a generic type can be known at runtime during some situations. Does anyone have a thought on this text? Does this mean that if you do something like this you are actually avoiding using type erasure?
Do not know how much this actually matters, I am just curious . The link:ArrayList<String> alist = new ArrayList<String>() {};
Using TypeTokens to retrieve generic parameters - JQuantLib
Take care,
Kerr.
P.S.
I confess I didnt read it very carefully, so if I have missed something or missunderstood it then that is why, lol.
EDIT:
Lol, just realized I forgot to give the thread a better title. Sorry about that.