org.aspectj/tests/new/StrictFPAdvice.java
2002-12-16 18:51:06 +00:00

23 lines
515 B
Java

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);
}
}