Bug 311749

Summary: Support lazyTjp for around advice
Product: [Tools] AspectJ Reporter: Peter Kvokacka <kvokacka>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: amil
Version: 1.6.9M1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Peter Kvokacka CLA 2010-05-05 11:02:29 EDT
I'd like to use lazyTjp for around advice. It would be really nice to have this feature supported in one of future releases.

It allow you to use if() construct like this:
public class A {
  public void m() {
  }
}

aspect X {
  void around(): execution(* m(..)) && if(1==3) {
     System.out.println(thisJoinPoint);
  }
}

It'll improve performance and lower memory consumption when aspect is "turn off" by a condition in if() guards joinpoint construction.
Comment 2 Hmil P CLA 2012-11-27 18:34:19 EST
(for use with @AspectJ)