aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs163/pr252722/B.java
blob: 23b516fb5ed842a283780cb0412d01e8f39cac77 (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
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.*;

// Now the joinpoint is in a different type, does the super call from advice still work OK?


abstract aspect Super {
  void foo(String s) {}
}

@Aspect
public class B extends Super {

	@Around("execution(* m(..))")
	public void invoke(ProceedingJoinPoint pjp) {
		super.foo("hello");
	}

	public static void main(String []argv) {
		new C().m();
	}
}

class C { 

	public void m() {}
}