blob: af9b6bcea03966e5b69e18cfc7121866eb615652 (
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;
public class StrictFPAdvice {
public static void main(String[] args) {
m(2.0);
}
static double m(double a) { return a; }
}
aspect A {
pointcut points(double d): call(double StrictFPAdvice.m(double)) && args(d);
strictfp before(double d): points(d) {
//XXX insert a test here that this body really is strictfp
}
strictfp double around(double d): points(d) {
//XXX insert a test here that this body really is strictfp
return proceed(d);
}
}
|