[jboss-jira] [JBoss JIRA] (WFLY-3456) Can not call method with generic type parameter with null value

Trond G. Ziarkowski (JIRA) issues at jboss.org
Thu Feb 25 05:04:00 EST 2016


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

Trond G. Ziarkowski commented on WFLY-3456:
-------------------------------------------

I think that the fix implemented for this issue is wrong.

According to [~dmlloyd]s comment above, the most general method should be chosen and to me that is {{getLastUpdate(Object)}}. Since bridge methods are filtered {{getLastUpdate(Object)}} is not wrapped, and {{getLastUpdate(SimpleOrder)}} is the only candidate available and the changes made in {{resolveAmbiguousWrapper(...)}}, that would have chosen {{getLastUpdate(Object)}}, will never be executed.

The filtering of all bridged methods also has the side effect of filtering "visibility" bridged methods as commented by [~bodist].

Since I am not able to reopen this issue I have created WFLY-6280 to address this.

> Can not call method with generic type parameter with null value
> ---------------------------------------------------------------
>
>                 Key: WFLY-3456
>                 URL: https://issues.jboss.org/browse/WFLY-3456
>             Project: WildFly
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 8.1.0.Final
>            Reporter: Marcel Neuwohner
>            Assignee: Farah Juma
>             Fix For: 9.0.0.Alpha1
>
>
> If you call a method with a generic type parameter from EL with null as parameter value you get 
> {code}
> javax.el.MethodNotFoundException
> Unable to find unambiguous method: SimpleOrderHandler$Proxy$_$$_WeldClientProxy.getLastUpdate(null)
> at
> javax.el.Util.findWrapper(Util.java:322)
> javax.el.Util.findMethod(Util.java:203)
> javax.el.ELUtil.findMethod(ELUtil.java:288)
> javax.el.BeanELResolver.invoke(BeanELResolver.java:527)
> javax.el.CompositeELResolver.invoke(CompositeELResolver.java:256)
> com.sun.el.parser.AstValue.getValue(AstValue.java:136)
> com.sun.el.parser.AstValue.getValue(AstValue.java:204)
> com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226)
> org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
> com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
> {code}



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


More information about the jboss-jira mailing list