AspectJ

Does the integration work ok in idea 10.5 or am I just doing something rather stupid ? :)

With a file having an aj extentions and having the java compiler as AJC

I get basic errors such as 'cannot resolve symbol' for thisJoinPoint with regards to the error display within a file.
See attachment.



Should this work ?

Thanks



Attachment(s):
idea.png
10 comments
Comment actions Permalink

At the moment AspectJ support is limited to inter-type declarations. Full support is planned for IDEA 11.

0
Comment actions Permalink

What's the best way of working in the mean while ?

0
Comment actions Permalink

It depends on what you need from IDEA.
E.g. you may turn inspections off for problematic files.

0
Comment actions Permalink

In a multi maven model project, is it possible to have the ajc compiler just for one module rather than the whole project ?

Is this likely in 11 ?

Thanks

0
Comment actions Permalink

Not yet.

I'm not sure (about 11) but it's possible. Do you have any objections in compiling entire project by Ajc?

0
Comment actions Permalink

AspectJ has a conflict with lombok and possibly annotation processors.

I'd keep the aspect module lombok free and then just weave other other modules via their compiled classes.
Currently using the 'aspectj weaver' plugin.

Thanks

0
Comment actions Permalink

Ok, I see.

BTW there is a discussion about the issue... technically, Ajc and Lombok can coexist.

0
Comment actions Permalink

Yes, they can co-exist via class time weaving.

ie lombok performs it's changes at compile time using javac and then you weave later.

0
Comment actions Permalink

Also will 11 allow compiled class weaving ?

0
Comment actions Permalink

So far there wasn't any demand for such functionality - I doubt it's possible in IDEA 11 timeframe. Please file an issue.

0

Please sign in to leave a comment.