javap and generics' type erasure

前端 未结 1 1696
南旧
南旧 2020-12-17 01:13

I am reading Herbert Schilds about type erasure in generics in java. Supposedly running javap on a class should give me the bytecode information about public, package protec

相关标签:
1条回答
  • 2020-12-17 01:35

    I'm not sure. But it seems signature attribute was introduced in jvm 7 (refer jvm specification).

    This attribute will capture signature information used for debugging and reflection api.

    To see signature attribute use javap -v <class>

    0 讨论(0)
提交回复
热议问题