]
RH Bugzilla Integration commented on JBEE-161:
----------------------------------------------
Peter Mackay <pmackay(a)redhat.com> changed the Status of [bug
BeanELResolver does not support methods that use varargs
--------------------------------------------------------
Key: JBEE-161
URL:
https://issues.jboss.org/browse/JBEE-161
Project: JBoss JavaEE Spec APIs
Issue Type: Bug
Components: jboss-el-api
Environment: jboss-el-api_2.2_spec-1.0.4.Final-redhat-1
Reporter: Ingo Weiss
Assignee: Scott Marlow
Labels: el
Fix For: jboss-el-api_3.0_spec-1.0.6.Final
Attachments: beanELResolver4VarArgs.zip
When passing BeanELResolver a method that uses varargs, BeanELResolver throws the
following exception:
{code}
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)
{code}