type erasure page说
Replace all type parameters in generic types with their bounds or Object if the type parameters are unbounded. The produced bytecode,therefore,contains only ordinary classes,interfaces,and methods.
但是,对于以下类:
public class Foo<E extends CharSequence> { public E something; }
javap -c Foo打印:
public class Foo<E extends java.lang.CharSequence> { public E something; }
为什么type参数没有被绑定(CharSequence)替换,而是保存为E?