It ought to be
@Aspect
class A {
@AfterReturning(pointcut="call(X.new(..))",returning="a")
public void foo(X a) {System.out.println(a);}
}
However, if the joinpoint is for the call to aspect construction, then you
may not be able to match it since aspect construction is mainly done in
generated code that is not exposed to the weaver for matching.
Andy.
2008/7/29 Eric Bodden <[EMAIL PROTECTED]>
> Try the following:
>
> after() returning(X a): call(X.new(..)) {}
>
> (sorry but I cannot do annotation-style syntax)
>
> Eric
>
> --
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users