blob: a5a9e2c5bc5e1f9c817124a6a0656430cf6e3f09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import org.aspectj.testing.Tester;
// PR#138, PR#139
// error message could be more informatinve (PR#139)
aspect MissingReturns {
int baz(int a) { return 1; }
void around(): this(MissingReturns) && call(int baz(int)) {
// SHOULD BE:
// static advice() returns int: MissingReturns && int baz(int) {
return proceed();
}
pointcut cut(): this(MissingReturns) && call(int baz(int));
void around(): cut() {
proceed();
return 2;
}
}
|