Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

@ItemClick and type parameters workaround #570

Closed

Conversation

rom1v
Copy link
Contributor

@rom1v rom1v commented Apr 22, 2013

This piece of code does not generate compilable code (see #504):

    @ItemClick
    void listItemClicked(List<String> item) {}

I think the problem comes from CodeModel.

I propose a workaround which generates compilable code (but with a type safety warning).

This piece of code does not generate compilable code (see androidannotations#504):

    @ItemClick
    void listItemClicked(List<String> item) {}

This is a workaround for a bug supposed to be in CodeModel.
The generated code generates a type safety warning.
@DayS
Copy link
Contributor

DayS commented May 23, 2013

ping :)

@rom1v
Copy link
Contributor Author

rom1v commented May 23, 2013

We shouldn't do this kind of tricks in the code.

I agree, this was a workaround. I searched how to do that with CodeModel, it seemed impossible.

Maybe APTCodeModelHelper.typeMirrorToJClass make it possible, I have not looked at it yet.

Maybe later ;-)

@DayS
Copy link
Contributor

DayS commented Jun 18, 2013

Sorry for @rom1v. @yDelouis has been faster :)

@DayS DayS closed this Jun 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants