Author
how come generis type information at runtime/reflection ?
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
Hi Folks,
Compiler erase/remove all generic information at compiletime i.e, compiler do not put generic type information into the compiled code is called Type erasure right?. In contrast to this, look at this discussion
http://www.coderanch.com/t/383648/java/java/java-reflection-element-type-List
As, Jim stated[it is working, agreed] how the generic information stored in class file?
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
posted Dec 01, 2010 23:55:17
0
See this too
http://www.coderanch.com/t/518731/java/java/Generics-collections-reflection
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
Sorry David! not getting you clearly!
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
posted Dec 03, 2010 05:51:10
0
I think it is best to trust in Jim.
subject: how come generis type information at runtime/reflection ?