both methods have same erasure, yet neither overrides the other
文章目录
- both methods have same erasure, yet neither overrides the other
- 1、编译报错 both methods have same erasure, yet neither overrides the other
- 2、为什么呢
- 3、如何解决
both methods have same erasure, yet neither overrides the other
1、编译报错 both methods have same erasure, yet neither overrides the other
编译报错的意思是,两个方法在类型擦除后,具有相同的原生类型参数列表,但是也不能覆盖另一个方法
代码如下
还没有评论,来说两句吧...