aspectj compile error - Maven project in IDEA 10

Hi,

I have a problem when building my multimodule Maven project - I have used IDEA 9.0.1 before and everything was going fine.
I have installed IDEA 10 and when I try to compile the project and start the server the compile error is announced:


Internal AspectJ compiler error (core file dumped to C:/Program Files/JetBrains/IntelliJ IDEA 10.0/bin/ajcore.20101216.081754.326.txt)

I have attached the core file (slightly modified - xxx, xx and XXX was used at the end to replace some packages names and class name)

Any help is greatly appreciated.

Thanks in advance.

EDIT: When I disable "AspectJ support" plugin, everything seems to be OK.



Attachment(s):
ajcore.20101216.081754.326_MODIFIED.zip
4 comments
Comment actions Permalink

Hello Juraj,

It's hard to get what's wrong inside AspectJ compiler. Looks like version incompatibility between compiler and AspectJ library (where Pointcut class is located). So one way to fix is to verify your project dependencies.

I suppose that your Maven project is configured to use AspectJ compiler. This setting was imported and therefore AspectJ compiler was set for IDEA project as well. So another way to fix is to exclude AspectJ compiler from compile goal of the Maven project, and then set compiler to javac in IDEA project settings.

And of course you can leave AspectJ plugin disabled if you don't need it.

0
Comment actions Permalink

Hi Juraj,


You can simply select Javac as a compiler(instead of Ajc) ..
I think it can help you ..hope so..

0
Comment actions Permalink

Hi,

I am actually using aspects and getting this error. Using Spring Roo's ITD's which weave in the different roo-managed components into Entities. If I change AJC to javac compiler, obviously no worky and code in my .aj's shows up as missing symbols. So what's do I do on this error? I've found that if I clean and install (using maven), occasionally it will behave and compile, but at this point not very often.

0
Comment actions Permalink

Hi Vard,

which version of AspectJ do you using? Does full rebuild (Build | Rebuild project) helps after the failure?

0

Please sign in to leave a comment.