Ben, The problem lies with "within(Aspect)". In order to determine that the execution of sayHello() is not in the control flow of Aspect we must advise _every_ join point i.e. set, get, staticinitialization, ... By qualifying this with "adviceexecution()" you are saying "not in the control flow of advice in Aspect".
Matthew Webster AOSD Project Java Technology Centre, MP146 IBM Hursley Park, Winchester, SO21 2JN, England Telephone: +44 196 2816139 (external) 246139 (internal) Email: Matthew Webster/UK/IBM @ IBMGB, [EMAIL PROTECTED] http://w3.hursley.ibm.com/~websterm/ Benjamin Mesing <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 30/11/2006 21:46 Please respond to [email protected] To [email protected] cc Subject [aspectj-users] Re: Abstract aspect and !cflow(within) results in ExceptionInInitializerError Matthew, thanks for your help. > Try this instead: This works fine. > You are experiencing a variation on the problem of advising yourself. > Sometimes you get NoAspectBoundExeption. Your within(Aspect) pointcut > matches more join points that you need including static initialization. Sorry, I fear I do not understand. How could a negated pointcut expression possibly lead to a advising myself? Thanks, Ben _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
