Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

@BindListener fails in a class with generic view holder #15

Open
gantonious opened this issue Dec 30, 2016 · 0 comments
Open

@BindListener fails in a class with generic view holder #15

gantonious opened this issue Dec 30, 2016 · 0 comments
Labels

Comments

@gantonious
Copy link
Owner

Problem Class:

public abstract class BaseViewCell<TViewHolder extends BaseViewHolder> extends AbstractViewCell<TViewHolder> {
    @BindListener
    public void bindListener(BaseViewHolder viewHolder, Object listener) {
        
    }
}

We fail when attempting to extract the ViewHolder type. We need to figure out how to extract the generic bound of BaseViewHolder, and use that as the view holder constraint.

@gantonious gantonious added the bug label Dec 30, 2016
@gantonious gantonious changed the title @BindListener is unstable in a class with generic parameters @BindListener fails in a class with generic view holder Dec 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant