-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classes generated in the last round, so they are not processed #85
Comments
http://stackoverflow.com/a/16114496/693752 In our case I think we can create the code in the first round even. No generated code, AFAIK, is gonna be annotated with "our" annotations so we will see all files to parse in the first round if my understanding is correct. The ideal fix would be to create any needed new generated code during each stage. |
Is this why |
+1 |
I didn't get what you mean. This issue is about à warning message during The problème you mention is about how the IDE deals with generated code. Le lun. 22 août 2016 19:14, Duan Wenbo notifications@github.com a écrit :
|
There is nothing we can do against this warning because it would break the possibility for any OTHER annotation processor to generate code using @Inject. Annotation processing rounds are constructed this way:
We can be optimistic and generate MemberInjectors and Factories during every round of annotation processing. That would work as all annotations in the each source file are supposed to be reported during the same round. But to generate the registries, we still need ALL member injectors or factories. So if there is any OTHER annotation processor that generates code using @Inject annotations, we woud need to add their registries and factories. The only appropriate place to generate the registries is last round. We also tried to use a trick mentioned in : http://stackoverflow.com/a/16114496/693752 So, I close this issue as there is absolutely nothing that can be done against this issue. We will always have to generate the registries during the last round, unless we assume that there is only one possible round of annotation processing for the inject annotation, which would prevent any other annotation processor to generate code using @injects. |
Some classes are generated in the last round, so they are not processed.
Example:
The text was updated successfully, but these errors were encountered: