G
Guybrush Threepwood
I'm making some exercises to learn AspectJ and I'm not able to define a
pointcut that captures the main method.
public aspect Test {
pointcut callStatic() : call(public static void *(..));
before() : callStatic() {
System.out.println("ok");
}
}
Why does the pointcut capture all public static methods with void return
type except for the main method?
pointcut that captures the main method.
public aspect Test {
pointcut callStatic() : call(public static void *(..));
before() : callStatic() {
System.out.println("ok");
}
}
Why does the pointcut capture all public static methods with void return
type except for the main method?