BaseRecyclerViewAdapterHelper icon indicating copy to clipboard operation
BaseRecyclerViewAdapterHelper copied to clipboard

ArrayIndexOutOfBoundsException

Open AcgnCodeMonkey opened this issue 9 years ago • 10 comments

image image

更新到2.8.1后出现泛型找不到的下标越界异常,之前并没有这个问题 image 我自己封装时是传了两个泛型的,按理说不应该出现这个bug

AcgnCodeMonkey avatar Feb 22 '17 06:02 AcgnCodeMonkey

收到,我看看。

CymChad avatar Feb 22 '17 06:02 CymChad

@AcgnCodeMonkey 让我看下你的adapter 定义

QtyearLin avatar Feb 22 '17 08:02 QtyearLin

public abstract class BaseRecyclerViewAdapter<T> extends BaseQuickAdapter<T, StyBaseViewHolder>

tysheng avatar Feb 23 '17 01:02 tysheng

没有什么特别的自定义内容,就是简单封装了一个抽象BaseAdapter image 泛型明明传了两个,我没懂为什么会角标越界

AcgnCodeMonkey avatar Feb 23 '17 03:02 AcgnCodeMonkey

等我晚上回来看看

QtyearLin avatar Feb 23 '17 04:02 QtyearLin

可能因为超类变成了你自定义的抽象类而不是basequick

QtyearLin avatar Feb 23 '17 04:02 QtyearLin

@AcgnCodeMonkey 可以再试下

QtyearLin avatar Feb 24 '17 05:02 QtyearLin

@CymChad @AcgnCodeMonkey @tysheng fixed

QtyearLin avatar Feb 25 '17 01:02 QtyearLin

compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.8.3'

CymChad avatar Feb 27 '17 03:02 CymChad

为什么我的adapter继承了BaseQuickAdapter后没有setonclick事件啊,是我的使用方法不对么,拜托教我一下

BugMen avatar Mar 02 '17 08:03 BugMen