[
https://issues.apache.org/jira/browse/JEXL-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15170395#comment-15170395
]
Dmitri Blinov edited comment on JEXL-190 at 2/27/16 6:47 AM:
-------------------------------------------------------------
Well, if null namespaces are not prohibited, then we have a bug in the current
implementation, which prevents any functions from global context from being
resolved (incorrect) while allowing functions from local context to be used
(correct), if JEXLEngine was built with namespace resolver map containing
'null' key.
was (Author: dmitri_blinov):
Well, if null namespaces are not prohibited, then we have a bug in the current
implementation, which prevents any functors from global context from being
resolved (incorrect) while allowing functors from local context to be used
(correct), if JEXLEngine was built with namespace resolver map containing
'null' key.
> local function within context is not resolved if function resolver class
> without namespace is specified
> -------------------------------------------------------------------------------------------------------
>
> Key: JEXL-190
> URL: https://issues.apache.org/jira/browse/JEXL-190
> Project: Commons JEXL
> Issue Type: Bug
> Affects Versions: 3.0
> Reporter: Dmitri Blinov
> Assignee: Henri Biestro
>
> {code}
> z = function(x) { return x + 1}; return z(1)
> {code} returns error unsolvable function/method 'z' while
> {code}
> var z = function(x) { return x + 1}; return z(1)
> {code} returns 2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)