Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Unknown AspectJ Error Message

Hi, this is a consequence of the fix described in

https://bugs.eclipse.org/bugs/show_bug.cgi?id=61568

abc is a research compiler for the same AspectJ language
as ajc; it's been developed with the same test suite.
There are however some minor differences, and one of
them is that abc does not place such restrictions on
|| and variable binding. Your pointcut would be fine
in abc. See

  http://aspectbench.org

-Oege

On Thu, 28 Oct 2004, Maximilian Stoerzer wrote:

> Hi everybody,
>
> when applying advice to an inner class I get the following error message (quote):
>
> Cannot use this() to match at this location and bind a formal to type
> 'org.apache.commons.codec.language.DoubleMetaphone$DoubleMetaphoneResult' - the
> formal is already bound to type
> 'org.apache.commons.codec.language.DoubleMetaphone$DoubleMetaphoneResult'.  The
> secondary source location points to the problematic this().
>
> The corresponding pointcut definition is the following:
>
> public pointcut contextCall_ (char param_0,
> org.apache.commons.codec.language.DoubleMetaphone.DoubleMetaphoneResult refObj)
> (execution(public void
> org.apache.commons.codec.language.DoubleMetaphone.DoubleMetaphoneResult.append(char))
>   && args(param_0) && this(refObj)) || (execution(public  void
> org.apache.commons.codec.language.DoubleMetaphone.DoubleMetaphoneResult.append(char,
> char)) && args(param_0, char) && this(refObj));
>
> (looks a bit odd because it is generated).
>
> Has anyone experienced this kind of error before? What is the problem here? I have
> to admit that I do not understand the error message.
>
> Thanks for any hints!
>
> Best regards,
> 	Max
>
> --
> Maximilian Stoerzer
> Lehrstuhl Software Systeme - FMI - University of Passau
> Tel: +49 851 509 3096, eMail: stoerzer@xxxxxxxxxxxxxxxxx
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top