aspect A {
// TODO why does cflowbelow not behavior correctly on constructor like on method?
pointcut construction(C c):
execution(C.new(..)) &&
this(c);
after(C c) returning:
construction(c) &&
!cflowbelow(construction(C)) {
System.out.println("a C instance constructed");
}
}
class C {
private int n;
public C() {
this(1);
}
public C(int n) {
this.n = n;
}
public static void main(String[] args) {
C c = new C();
}
}
Regards,
Rice
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
