Re: Is return statement ignored in advice?
"Ron Bodkin" <[email protected]> Fri, 17 Aug 2007 09:40:47 -0700
| Newsgroups | gmane.comp.programming.aspect.general |
|---|---|
| Organization | New Aspects of Software |
| Message-ID | <[email protected]> |
Return means to return from the body of the advice. For before and after * advice that just returns like from a subroutine call. For around advice, if you return without proceeding with the underlying join point it will skip further execution, which sounds like what you want to achieve... -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of chuan Zhao Sent: Thursday, August 16, 2007 11:59 PM To: [email protected] Subject: [aosd-discuss] Is return statement ignored in advice? Hi All, I found that in AspectJ, if I put a return statement in an advice, it will not affect the execution of program. Is return just ignored in any advice? I couldn't find any explanation in AspectJ documentation. Could anyone give some answer to this? Thanks, Chuan _______________________________________________ discuss mailing list - [email protected] To unsubscribe and change options, go to: http://aosd.net/mailman/listinfo/discuss_aosd.net Check out the AOSD.net Wiki: http://aosd.net/wiki _______________________________________________ discuss mailing list - [email protected] To unsubscribe and change options, go to: http://aosd.net/mailman/listinfo/discuss_aosd.net Check out the AOSD.net Wiki: http://aosd.net/wiki