Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Weaving does not complete in the presence of compiler errors
Weaving does not complete in the presence of compiler errors [message #599048] Tue, 19 August 2008 17:44
Arthur Mising name is currently offline Arthur Mising nameFriend
Messages: 4
Registered: July 2009
Junior Member
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.

Previous Topic:ClassGenException after upgrade to 1.6.1
Next Topic:How can I find Test Suite in my project
Goto Forum:

Current Time: Sat Nov 25 06:03:54 GMT 2017

Powered by FUDForum. Page generated in 0.02961 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software