|Weaving does not complete in the presence of compiler errors [message #72100]
||Tue, 19 August 2008 13:44
Registered: July 2009
I'm posting this because I spent a long time fighting with it and I want |
to save others the trouble by putting it in a searchable location. I don't
know if this problem exists in Eclipse 3.4 or the associated AJDT. I am
using Eclipse 3.3 right now.
When AJDT compiles the aspect code and weaves it with the Java it appears
to stop when it first encounters a Java file that does has a compiler
error in it. This means that some but not all weaving will be done and the
advise will appear to match many fewer places than it should. For a while
I thought my pointcuts were incorrect.
This took me a while to figure out because the eclipse compiler does not
stop on the first error and the aspectJ compiler does not show an error
saying that it stopped. So I was left wondering why my pointcuts only
matched some classes and not others.
The solution was (obviously) to make sure all the files in the project
compiled without errors.
Powered by FUDForum
. Page generated in 0.01394 seconds