You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
None-AA Annotations with parameters referencing AA-generated classes are not copied correctly #1211
I have a custom annotation with parameters , one of them refers to another AA-Generated class. This parameter is not copied to generated class correctly (maybe since the AA-class is generated before the referred AA-class). In the end the Annotation looks like @MyAnnotation(param = "error") which obviously breaks the code
as discussed in #982, the ideal solution would be to copy such annotations correctly. If it is not possible, maybe the fall-back solution could be used which consists in skipping annotations marked with @Inherited since they are still discoverable in runtime when using generated class.
I don't get it. I try to create a test case using AA 3.1 . But may test annotation is not copied to generated class at all. Are there any extra preconditions for annotation-copy to take place?
P.S.
Oh sry, I'm an idiot. I took org.androidannotations as base package for test case, that's why :)
Great test project! However i prefer pushing these test projects to GitHub, so they can be easily browsed without downloading etc. (this is just for the future).
OK, unfortunately i cannot debug this in eclipse, because eclipse can actually build the test project... But made some debug logs and built with terminal. Unfortunately there is no remedy, we cannot read the .class argument if it is not present in the classpath (not generated, yet).
I am closing this one for now, since we implemented the workaround. The real solution would be much harder to do, since it needs an architectural change.
I have a custom annotation with parameters , one of them refers to another AA-Generated class. This parameter is not copied to generated class correctly (maybe since the AA-class is generated before the referred AA-class). In the end the Annotation looks like
@MyAnnotation(param = "error")which obviously breaks the codeas discussed in #982, the ideal solution would be to copy such annotations correctly. If it is not possible, maybe the fall-back solution could be used which consists in skipping annotations marked with
@Inheritedsince they are still discoverable in runtime when using generated class.