[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Problems to set up an annotation based pointcut with Spring3 and Aspectj 1.6

Perhaps we need to look at the exact text of your failing program.
The error you mention suggests you are referring to a parameter in
your advice that is not bound in the pointcut, like this:

   public Object performCallWhenException(ProceedingJoinPoint
joinPoint,Object o) throws Throwable {

that produces the error you are seeing.  But in the code above you
aren't using anything other than ProceedingJoinPoint.  If you have a
complete mini project that shows the problem, I'm sure we can get it


> The problem is that GContracts is a global AST transformation which is not
> taken into account by the Eclipse Groovy compiler, therefore the editor
> shows the annotation closure as error but the compilation itself will run
> through.

On 21 March 2011 09:57, jelramzy <jelramzy@xxxxxxxxx> wrote:
> the problem is that i get the following error when i try to test the
> pointcut:
> Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound
> in pointcut
> even when i put the full path to the annotation
> --
> View this message in context: http://aspectj.2085585.n4.nabble.com/Problems-to-set-up-an-annotation-based-pointcut-with-Spring3-and-Aspectj-1-6-tp3393103p3394133.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users