Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ajdt-dev] access to the method which contains the handler?

thanks loads! perfect!

----- Original Message ----
From: Eric Bodden <eric.bodden@xxxxxxxxxxxxxx>
To: ajdt-dev@xxxxxxxxxxx
Sent: Friday, February 15, 2008 2:41:38 PM
Subject: Re: [ajdt-dev] access to the method which contains the handler?

Something like this should work:

before(Exception ex, User u1, int id):
cflow(execution(* User.deleteAccount(int))) && target(u1) && args(id)))
&& withincode (* User.deleteAccount(int))
&& handler(Exception) && args(ex) {

}

Eric


On 15/02/2008, chris colombo <chriscol002@xxxxxxxxx> wrote:
>
> Is there any way to have access to the target and arguments of the method
> which contains an exception handler? (given that the joinpoint is on the
> handler)
>
> In other words, I want to be able to write something like this:
>
> before(Exception ex, User u1, int id):((withincode (*
> User.deleteAccount(int))) && target(u1) && args(id)) && ((handler(Exception)
> && args(ex)))) {
>        }
>
> thanks in advance
>
>  ________________________________
> Never miss a thing. Make Yahoo your homepage.
> _______________________________________________
>  ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>
>


--
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada
_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev



Never miss a thing. Make Yahoo your homepage.

Back to the top