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

Reply via email to