[jboss-user] [JBoss AOP] - Re: bug or feature? methodInvocation.getArguments() empty ar

flavia.rainone@jboss.com do-not-reply at jboss.com
Thu Nov 20 14:41:31 EST 2008


It is a consistency bug that has been fixed, actually.

In the previous version, that method would result in null on one cenario and in an empty array on a different weaving mode.

Now, we got rid of this inconsistency by making it always return an non-null array. This has also been formalized by javadoc documentation:

http://www.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/apidocs/org/jboss/aop/joinpoint/MethodInvocation.html#getArguments()

With that documentation, you are now assured that it will always return a non-null array and this won't change again, it is part of the JBoss AOP API spec.

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

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



More information about the jboss-user mailing list