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?

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


Back to the top