|
João , I am new to AspectJ too so I am not sure whether there is any direct method to do this. But here is what I would try: Use a withincode pointcut to intercept execution of field.addListener() within m1(). In the advice (advice1) collect the reference of Listeners in a list. Use another pointcut to intercept execution of methodToBeReached() that cflowbelow(checkBoxSelected()). In the advice, lookup the listener object in the list prepared by advice1. If the listener is found in the list this will indicate that the listener was added from m1(). Regards Tahir Akhtar João Paulo Sabino de Moraes wrote: Hello all, |
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
