| Author |
Difference between the byte code generated for Generics and legacy collections
|
Pramod Krishna Murthy
Ranch Hand
Joined: Jun 30, 2009
Posts: 37
|
|
Hi,
Someone asked me this question. What is the difference between the byte code generated for Generics and Legacy collections. i really think from the byte code perspective there is no diff. please give me information about this.
|
"Nothing is forever except Change"
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32644
|
|
|
You would have to display the bytecode with javap -c MyClass. Because of erasure, there might be no difference at all. I don't know; I haven't tried it.
|
 |
Pramod Krishna Murthy
Ranch Hand
Joined: Jun 30, 2009
Posts: 37
|
|
|
Thanks for the reply
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32644
|
|
You're welcome
|
 |
 |
|
|
subject: Difference between the byte code generated for Generics and legacy collections
|
|
|