Uploaded image for project: 'JBoss Enterprise Spec APIs'
  1. JBoss Enterprise Spec APIs
  2. JBEE-161

BeanELResolver does not support methods that use varargs

XMLWordPrintable

      When passing BeanELResolver a method that uses varargs, BeanELResolver throws the following exception:

      java.lang.IllegalArgumentException: wrong number of arguments
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at javax.el.BeanELResolver.invokeMethod(BeanELResolver.java:834)
      	at javax.el.BeanELResolver.invoke(BeanELResolver.java:527)
      	at org.apache.el.parser.AstValue.getValue(AstValue.java:156)
      	at BeanELResolverTest.readExpressionValue(BeanELResolverTest.java:32)
      	at BeanELResolverTest.testMethodWithFixArgumentList(BeanELResolverTest.java:21)
      

              smarlow1@redhat.com Scott Marlow
              rhn-support-iweiss Ingo Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: