Use "call" or "execution" instead of "withincode". Withincode matches
join points within the context of the function block, but you want to
match on invocations of the function.
Dean
Marco Mistroni wrote:
hello all,
i have following code which shows, in ajdt, no cross references..
pointcut getItems() :
call (* com.Manager.getItems(..));
pointcut build(DTO demand) :
withincode(* com.ProcessorBean.build(..,DTO))
&& args(demand);
Object around(DTO demand) :
(build(demand) && getItems()){
System.err.println("We are there...");
return proceed(demand);
}
if instead i omit the DTO parameter (menaing, i don't pass as argument
of my build pointcut, everything
works fine
anyone can tell me what's wrong? more likely i am using wrong
syntax.....
thanx and regards
marco
_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev
--
Dean Wampler, Ph.D.
dean at aspectprogramming.com
http://www.aspectprogramming.com
http://www.contract4j.org
I want my tombstone to say:
Unknown Application Error in Dean Wampler.exe.
Application Terminated.
[Okay] [Cancel]
|