UdhayaBalaji / androidannotations

Automatically exported from code.google.com/p/androidannotations
0 stars 0 forks source link

Improve handling of ErrorTypes through multiple annotation processing rounds. #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We currently don't take advantage of the multiple rounds of annotation 
processing. This is because we don't add any annotation to the generated code, 
so it doesn't need to be processed again.

When we do a clean build, we are in a situation where some generated artifacts 
are used in the code, but not available yet since they've just been cleaned. 
This leads to hard times trying the determine the types of some elements. The 
type of those elements is described as an "ErrorType".

The current decision when we encounter such elements is to treat them as 
"correct" elements and validate them without checkout them any more. We trust 
the developer. It works quite well, but it's not really future proof.

A solution could be to use multiple rounds for that, if possible. We could 
collect the elements that cannot be validated on a round because they depend on 
a generated item, then let the round generate the missing code, them do an 
extra round and treat the previously received elements.

That's not gonna be easy because our model doesn't work that way, so we have to 
think it through.

Original issue reported on code.google.com by py.ricau on 8 Dec 2011 at 11:04

GoogleCodeExporter commented 8 years ago
https://github.com/excilys/androidannotations/issues/25

Original comment by py.ricau on 6 Jan 2012 at 4:00