AspectJ weaver

Compatible with  IntelliJ IDEA
07.01.2013
43 230
Post-compile AspectJ weaving

Download plugin

Version

Update date

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 package-info.java. 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
Anonymous
15.05.2014
Does this plugin still work in version 13?
07.07.2011
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.

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


26.01.2010
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.
Anonymous
09.12.2009
Thanks! It is solved now!
Anonymous
09.12.2009
Yes indeed, when I disable the plugin, the code is compiling.
This error is also posted on http://youtrack.jetbrains.net/issue/IDEA-26596
09.12.2009
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?
Anonymous
09.12.2009
I have following problem in IntelliJ 9:
Original exception:
java.lang.AbstractMethodError
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1525)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:948)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:723)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:474)
at com.intellij.compiler.impl.CompileDriver.access$700(CompileDriver.java:96)
at com.intellij.compiler.impl.CompileDriver$6.run(CompileDriver.java:415)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:136)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:422)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:197)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:222)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:188)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:337)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:328)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:124)
18.10.2009
Great plugin, but I Can't get it to work with IntelliJ 9 (Maia). I'm using build 90.94.
Anonymous
20.11.2008
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.
Anonymous
07.11.2008
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.
01.12.2006
nice stuff, i am gonna give a try
Please  sign in  to leave a comment.