JBoss.org Community Documentation
Notice that, iIf JBoss AOP cannot find an advice with highest priority, it just selects one of the methods arbitrarily. This would be the case of the following advice method scenario:
public class POJO { public void method(int arg0, long arg1) {…} } <aop> <aspect class="OneAspect"/> <bind pointcut="execution(* POJO->method(..))"> <before aspect="OneAspect" name="before"/> </bind> </aop> public class OneAspect { public void advice(@Arg int arg0) {} public void advice(@Arg long arg1) {} }