aspose file tools*
The moose likes Java in General and the fly likes how come generis type information at runtime/reflection ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how come generis type information at runtime/reflection ?" Watch "how come generis type information at runtime/reflection ?" New topic
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

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

I think it is best to trust in Jim.

 
Consider Paul's rocket mass heater.
 
subject: how come generis type information at runtime/reflection ?