3 Replies Latest reply on Nov 21, 2008 4:46 AM by dermas

    bug or feature? methodInvocation.getArguments() empty array

    dermas

      So the upgrade from jboss aop 1.5.6. to 2.0.0. did finally work.

      Now I have a question to a different behavior:

      public class Foo implements Interceptor
      
      public Object invoke(Invocation invocation) throws Throwable {
       MethodInvocation methodInvocation = (MethodInvocation) invocation;
       methodInvocation.getArguments();
      }
      


      Ok, now I intercepted a method without parameters and methodInvocation.getArguments() acts differently:

      With 1.5.6. GA:
      - I get null

      With 2.0.0. GA:
      - I get an empty object array

      So does this new behavior happen on purpose or is it a bug?