Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Order of annotation and static relevant?

[Sorry for insisting.]

Hi all,

I think this is a bug, but I not sure:
public aspect Test {
    void f() {}
    @A void af() {}
    static void sf() {}
    @A static void asf1() {}
    static @A void asf2() {}
   
    private static @interface A {}
   
    private static aspect B {
        declare error : execution(static @A * *(..)) : "Does not work";
        declare error : execution(@A static * *(..)) : "Works";
    }   
}
Regards,

Manuel


Back to the top