[aosd-discuss] Is return statement ignored in advice?

Ron Bodkin rbodkin at newaspects.com
Fri Aug 17 12:40:47 EDT 2007


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: discuss-bounces at aosd.net [mailto:discuss-bounces at aosd.net] On Behalf
Of chuan Zhao
Sent: Thursday, August 16, 2007 11:59 PM
To: discuss at aosd.net
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    -    discuss at aosd.net

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




More information about the discuss mailing list