1 2 3 4 5 6 7 8 9 10 11 12 13 14
// "class with @Before extending @Aspect class" // shouldn't allow advice in a non-aspect type import org.aspectj.lang.annotation.*; @Aspect class A{ } class B extends A{ @Before("call(* org..*(..))") public void someCall(){ } }