[PRL] AOP questions

Pengcheng Wu wupc at ccs.neu.edu
Tue Mar 29 23:26:54 EST 2005



On Tue, 29 Mar 2005, John Clements wrote:

>
> No, I know that "around" and "after" are not pointcuts; they're forms
> of advice.  But for them to make any sense, join points can't be single
> points---they have to be intervals.  Let me be concrete.  Suppose that
> I run my program with a pointcut that selects calls to method 'm()'.
> Let's be _really_ concrete and say that the method m() is called just
> once during the execution, and it begins at step 2790 and ends at step
> 2902.  So in this case, the pointcut designates exactly one join point.
> Okay, suppose I specify "before" advice for this pointcut.  Well, it
> will hopefully get inserted before step 2790.  What if I specify
> "after" advice for this pointcut?  Well, it had better end up after
> step 2902.  For this reason, I believe that a "join point" must be
> defined as an execution interval, and not as a simple "point".

I think you are right. I always think of a join point being a stack frame.

--Pengcheng




More information about the PRL mailing list