[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: MethodInvocation.getArguments return value for 0 argumen

flavia.rainone@jboss.com do-not-reply at jboss.com
Mon Mar 26 07:49:41 EDT 2007


It is relatively easy.

We just need to be careful because @Args array used on before advices are currently the same as the one inside the invocation. And, the arguments array contained in the invocation is also used on after advices.

So, either we add a special case, by not doing that before/around/after interaction when there are zero arguments, or we turn the empty arguments array into null for before and after advices.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031544#4031544

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031544



More information about the jboss-dev-forums mailing list