aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/LTWAroundClosure.aj
blob: 80af46fd762c00c76bcc37ea4f81f7edee527fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.List;

public aspect LTWAroundClosure {

	pointcut println (List list) :
		execution(* println()) && this(list);
	
	void around (final List list) : println (list) {

		Runnable runnable = new Runnable() {
			public void run () {
				System.err.println("LTWAroundClosure.run(" + thisJoinPointStaticPart + ")");
				proceed(list);
			}
		};
		runnable.run();
		list.add("LTWAroundClosure");				
	}

}