[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
|
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Mon, 21 Mar 2011 10:15:19 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=dj990rA+BT38IKhyWsSYOjh6hVx9mZPbGvQaPU+aa3E=; b=YZLtRqxIugCi+4cJd1jAzNTO01JgkTQ/1tqDlO+NtwdiOJy+9bBDy/8aD+XcspN3No H3FQ0AAudTlLtZh+aIGYUOdcU7uF26dsoYRGexWKik2ihCT+4n4FYy6puowYFc+QM7iP KoHEQwqG3QpSgUt+G+j5ToWpAT4Ls7fbQI5uw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SMppMUqoemwTLWy4+Ar7AJ19EcZLeUFGNSeM94X+5Whr5i2g8jJGzB+0w052FSqr24 2Uw2w07Z/5xPRrBdb2OOB64URNQoGfUFdAiJciDuqoT+zfyJVoxyT8f3fTHdubCrAE47 dOP6u/qzpzoUha25JHvI+obYSQttFOGwgNQ0w=
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
sorted.
cheers
Andy
> 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
>