aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1810/493554/FooAspect.aj
blob: 4ad4c22cc9495c3dbe33bd32b32374f5635e937e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package example.aspect;

import example.dep.Dep;

public aspect FooAspect pertarget(setFieldValue(Dep)) {

  // interface ajcMightHaveAspect { }

  pointcut setFieldValue(Dep dep) :
    set(private * Dep.*) && target(dep);

  void around(Dep dep) : setFieldValue(dep) {
System.out.println("advised");
    proceed(dep);
  }

}