You should probably use thisJoinPointStaticPart.getSourceLocation().

-Ramnivas

On Sun, Sep 5, 2010 at 11:58 PM, Hagai Cibulski <[email protected]> wrote:

> The following turns out to be too slow:
>
> (and probably might be incorrect with certain compiler optimizations)
>
>
>
>       *after*(): methodUnderTestExecution() {
>
> StackTraceElement stackTraceElement = Thread.*currentThread*
> ().getStackTrace()[2];
>
> *int* returnLineNumber = stackTraceElement.getLineNumber();
>
>                         …
>
>
>
> Hagai
>
> _______________________________________________
> 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

Reply via email to