Extend from Generic Supertype?

前端 未结 2 728
情话喂你
情话喂你 2020-12-06 16:21

In Java, am I able to extend from a generic supertype? According to this article, it looks like I should be able to: http://www.ibm.com/developerworks/java/library/j-djc0513

2条回答
  •  醉酒成梦
    2020-12-06 16:47

    From that error message it sounds like you're trying to extend from the type parameter itself, which you cannot do because the type is erased at runtime. If this isn't what you're trying to do, please post your code.

提交回复
热议问题