Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how come generis type information at runtime/reflection ?

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry David! not getting you clearly!
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is best to trust in Jim.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic