mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 02:10:40 +02:00
23 lines
515 B
Java
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);
|
|
}
|
|
}
|