Bug 311749 - Support lazyTjp for around advice
Summary: Support lazyTjp for around advice
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.9M1   Edit
Hardware: All All
: P3 enhancement with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 11:02 EDT by Peter Kvokacka CLA
Modified: 2012-11-27 18:34 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)