Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Re: Abstract aspect and !cflow(within) results in ExceptionInInitializerError


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, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/



Benjamin Mesing <benjamin.mesing@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sent by: aspectj-users-bounces@xxxxxxxxxxx

30/11/2006 21:46

Please respond to
aspectj-users@xxxxxxxxxxx

To
aspectj-users@xxxxxxxxxxx
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
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top