[jboss-jira] [JBoss JIRA] (JBEE-161) BeanELResolver does not support methods that use varargs

RH Bugzilla Integration (JIRA) issues at jboss.org
Mon Apr 25 06:13:02 EDT 2016


    [ https://issues.jboss.org/browse/JBEE-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196388#comment-13196388 ] 

RH Bugzilla Integration commented on JBEE-161:
----------------------------------------------

Vladimir Dosoudil <dosoudil at redhat.com> changed the Status of [bug 1292891|https://bugzilla.redhat.com/show_bug.cgi?id=1292891] from MODIFIED to ON_QA

> 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}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list