[
https://issues.apache.org/jira/browse/MYFACES-2968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933786#action_12933786
]
Martin Kočí commented on MYFACES-2968:
--------------------------------------
Yes,
that EL behaviour was exactly my problem too.
Problem 1: spec does not speak about return value : javadoc for
Application.createMethodBinding:
" then call ExpressionFactory#createMethodExpression}, passing the given
arguments, and wrap the result in a MethodBinding implementation, returning it"
- no words about return value.
Problem 2: differrent behaviour of EL's implemetations. I think JUEL does right
in this case but on the other hand methods in java cannot differ only in return
value.
> ApplicationImpl.createMethodBinding should create expression with signature:
> void method(params)
> ------------------------------------------------------------------------------------------------
>
> Key: MYFACES-2968
> URL: https://issues.apache.org/jira/browse/MYFACES-2968
> Project: MyFaces Core
> Issue Type: Bug
> Reporter: Martin Kočí
> Attachments: MYFACES-2968.patch
>
>
> This is probably not specified but mojarra does it:
> Application.createMethodBinding creates method expression with void return
> type. That makes sence because original purpose of MethodBinding is a
> reference to faces listeners and they are without return values mostly.
> o.a.m.ApplicationImpl creates value expression to method with Object return
> type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.