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

Processing an array of nested annotations #2041

@trybenko

Description

@trybenko

This is a template, please adjust it accordingly to your specific issue.

You may also want to read our issue guide.

AndroidAnnotations version: since 3.0.2 and up

Android compile SDK version: 26

Annotated code:

@CustomAnnotation({
        @CustomAnnotationItem(id = 1, value = "one"),
        @CustomAnnotationItem(id = 2, value = "two"),
        @CustomAnnotationItem(id = 3, value = "three")
})
@EActivity
public class MainActivity extends AppCompatActivity {

}

Expected generated code:

@CustomAnnotation({
    @CustomAnnotationItem(id = 1, value = "one"),
    @CustomAnnotationItem(id = 2, value = "two"),
    @CustomAnnotationItem(id = 3, value = "three")
})
public final class MainActivity_
    extends MainActivity
    implements HasViews
{

}

Actual generated code:

@CustomAnnotation({
    @CustomAnnotationItem(id = 1, value = "one")
})
public final class MainActivity_
    extends MainActivity
    implements HasViews
{

}

Stacktrace in case of AA crash:

See attachment for more details:
AndroidAnnotationIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions