AspectJ weaver
for IntelliJ IDEA

Compatible with  IntelliJ IDEA
44 196
Post-compile AspectJ weaving

Download plugin

Recent change notes

3.0.0 Support for IntelliJ 12. Thanks to João Marcus Christ for contributing necessary changes!
2.09 Indicating compatibility with IntelliJ 11.1.5 in plugin meta data...
2.08 Indicating incompatibility with IntelliJ 12 in plugin meta data.
2.07 Fix problems with OpenJDK and Groovy.
2.06 AspectJ 1.6.10 bundled.
2.05 Changing internal naming since JetBrains "stole" the current one.
2.04 Use JDK 1.5 to fix OS X compatibility.
2.03 / 1.25 Ignore abstract aspects.
2.02 / 1.24 Fixing problems with source line references.
2.01 Support for IntelliJ 9 final.
2.00 Support for IntelliJ 9 beta. Thanks to Mario Ivankovits! Note that this version is not compatible with previous versions of IntelliJ.
1.23 Adding hidden setting noInline. Setting last compatible build.
1.22 Bundling AspectJ 1.6.5. Fixing problems with Thanks to Mario Ivankovits!
1.21 Avoid some problems with searching for aspects inside aspectjlib.jar. Avoid problems with disabled aspects.
1.20 Add support for IntelliJ IDEA 8.
1.13 Avoid possibility of NullPointerException introduced in 1.12.
1.12 Fix problems with @DeclareParents. Bundle AspectJ 1.6.1.
1.11 Silently ignore invalid class files when scanning for aspects.
1.10 AspectJ 1.6.0 bundled.
1.07 Bugfix: IntelliJ would hang at project load if weaving was active but no aspects listed.
1.06 AspectJ 1.5.4 bundled.
1.05 Fixing unclosed file stream.
1.04 Fixing problems with aspect inheritance/classpath issues.
1.03 Updating to AspectJ 1.5.3. Fixing a few bugs, for example regarding annotations in join point patterns.
1.02 Fixing bug related to Windows pathnames with spaces.
1.01 Internal improvement to prevent potential bug.
1.00 Fixing bugs with regards to aspects in JAR files. Several minor improvements.
0.20 Radically improved performance by storing aspects in project files. Aspects may be enabled/disabled in project settings
0.11 Improved message handling.

General usage instructions

Activate on Build menu, then compile
Does this plugin still work in version 13?
I'm using Spring with AspectJ (CTW) and everything works great with my unit tests. All my @Configurable classes gets AutoWired (When instantiated with new).

However when I try to run a GWT or Tomcat Configuration, non of my @Configurable classes have any of their @AutoWire properties injected.
When debugging I can see that the
AnnotationBeanConfigurerAspect is called after object is instantiated, but this doesn't happen when running GWT or Tomcat configurations.

I'm not sure if my problem is related to the plugin or if there is some Spring magic I have yet to discover.

Any plan to update to aspect 7.0 ?
(aspectj 1.6.9)

Problem with 1.25 plugin

I'm using IDEA 8.1.3 on Leopard (10.5.8). When I used the plugin manager to install AspectJ plugin, it gave me version 1.25. However when I restart IntelliJ I get an error

java.lang.NoClassDefFoundError: org/aspectj/bridge/IMessageHandler

and nothing in IntelliJ works.

I was successful when I downloaded the 1.24 plugin from this page and unzipped it manually into my plugins directory ~/Library/Application Support/IntelliJIDEA80. It was just the 1.25 that didn't work for me.
Thanks! It is solved now!
Yes indeed, when I disable the plugin, the code is compiling.
This error is also posted on
Anonymous, does it work when this plugin is disabled? Or how do you come to the conclusion that his plugin is what is causing the error?
I have following problem in IntelliJ 9:
Original exception:
at com.intellij.compiler.impl.CompileDriver.a(
at com.intellij.compiler.impl.CompileDriver.a(
at com.intellij.compiler.impl.CompileDriver.a(
at com.intellij.compiler.impl.CompileDriver.a(
at com.intellij.compiler.impl.CompileDriver.access$700(
at com.intellij.compiler.impl.CompileDriver$
at com.intellij.openapi.progress.impl.ProgressManagerImpl$
at com.intellij.openapi.progress.impl.ProgressManagerImpl$
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(
at com.intellij.openapi.progress.impl.ProgressManagerImpl$
at com.intellij.openapi.application.impl.ApplicationImpl$
at java.util.concurrent.Executors$
at java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$
at com.intellij.openapi.application.impl.ApplicationImpl$1$
Great plugin, but I Can't get it to work with IntelliJ 9 (Maia). I'm using build 90.94.
Weaving seems to work just fine (although for serious projects we build through maven anyway). What's missing is proper IDE support for aspects - to let us navigate between aspects and the Java code they will be affecting.
Matthias has done a great job with this one. It's too bad JetBrains hasn't seen it fit to provide real AspectJ integration in IntelliJ, but this gets you most of the way there.
nice stuff, i am gonna give a try
Please  sign in  to leave a comment.