aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/Pr104220.aj
blob: a4886138705a7b8a5b5847c792d953c52fe5125b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// pr104220 - adviceexecution joinpoint toString forms

public aspect Pr104220 {
	
	before() : adviceexecution() && !within(Pr104220) {
		System.out.println(thisJoinPoint.getKind());
		System.out.println(thisJoinPoint.toString());
		System.out.println(thisJoinPoint.toShortString());
		System.out.println(thisJoinPoint.toLongString());
	}

	public static void main(String[] args) {
		new C().foo();
	}
	
}

class C {
	
	public void foo() {}
	
}

aspect SomeAspect {
	
	before() : execution(* foo(..)) {}
	
}