aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr59196.aj
blob: f54d980975a13fbe83339003e84c6559aa79b7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
aspect some_aspect {
   pointcut call_m(int a, int b) : call(int *.m(..)) && args(a, b);
 
   int m(int p, int q) { return 2; }
   
   void foo() {
	   m(1,4);
   }
   
   int around(int x, int y) : call_m(x, y) {  return 5; }
}
 
aspect other_aspect {
   before(int x, int y) : 
       adviceexecution() && within(some_aspect) &&  args(x, y) {
	   
   }
}