Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Unexpected advice behaviour within IDT

That looks like a bug to me - want to raise a bugzilla?
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ

I'll look at it this week when I get a few mins.

Andy

On 7 May 2011 07:56, AuFinNS <afins_2004@xxxxxxxx> wrote:
> Hello,
> there is an unexpected advice behaviuor in the following aspect:
>
> public aspect InterType {
>   @Retention(RetentionPolicy.RUNTIME)
>   @Target({METHOD})
>   public @interface MyAnnotation {
>   }
>
>   public static aspect AroundMethod {
>     Object around() : execution(@MyAnnotation * * (..)) {
>       return proceed();
>     }
>   }
>
>   public interface InterTypeIfc {}
>
>   // (1)
>   @MyAnnotation
>   public void InterTypeIfc.m1(int p1) {}
>
>   // (2)
>   public void InterTypeIfc.m1(int p1, int p2) {}
>
>   // (3)
>   @MyAnnotation
>   public void m1(int p1) {}
>   // (4)
>   public void m1(int p1, int p2) {}
> }
>
> }
> (1,3) correctly adviced by AroundMethod aspect
> (4) correctly not advices by the aspect
> (2) adviced by AroundMethod aspect --- what i'm not expecting and don't want
> Is there any error in the pointcut: execution(@MyAnnotation * * (..))
> Thanks!
> Max
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top