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.

Order of calling @AfterViews annotated methods from super classes  #810

@AntekM

Description

@AntekM

I have such inheritance hierarchy:
A -> B -> C (both A and B are abstract activities/fragments).
All classes have methods with @Afterviews annotations - lets say initA, initB and initC

What I have noticed, if I just compile project (I'm using AndroidStudio, but as I remember I had similar problem in Eclipse), after changing something in class B, methods will be called in order:
initB, initA, initC
After clean rebuild i get the correct order:
initA, initB, initC - until I change again something in B

I think they should always be called in order consistent with inheritance hierarchy, otherwise it causes lots of unexpected bugs if i forget to do clean rebuild

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions