Created attachment 1107219[details]
Reproducer
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)
Steps to reproduce:
1. Unzip reproducer
2. Run mvn test
Created attachment 1107219 [details] Reproducer 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) Steps to reproduce: 1. Unzip reproducer 2. Run mvn test