Sorry, Its working as i wanted. i added an extra field while experimenting with things and that one is not cutting the field call at all which led to this confusion
Andy Clement Thank u for ur help. :) Sorry for the noise. On Sat, Jun 27, 2009 at 4:55 PM, Ravi Chandra <[email protected]> wrote: > This way you are pointcutting the field variable. How does it return/ set > the variable to new MyList() back?. In other words if i say > > System.out.println('class::' + u.alias.getClass() );// we are point > cutting u.alias variable > > its not printing MyList; instead its showing ArrayList. > > any ideas? > > Are ther any standard tutorials available on the net by which we can get > such problems clarified? Googling hardly helps. Any ideas/ links... kindly > help. > > ravi > > > On Fri, Jun 26, 2009 at 9:57 PM, Andy Clement <[email protected]>wrote: > >> Here is a working solution: >> >> public aspect INAspect { >> >> pointcut listCut(ArrayList value, LIST in ) : set(@LIST * * ) && >> args(value) && @annotation(in); >> >> void around(ArrayList value, LIST in) :listCut(value,in) { >> System.out.println("**annotation " + thisJoinPoint + " ann:" + >> in.value()); >> proceed(new MyList(),in); >> } >> >> } >> >> _______________________________________________ >> 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
