You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dmitri Blinov (JIRA)" <ji...@apache.org> on 2019/01/12 07:52:00 UTC

[jira] [Created] (JEXL-287) Wrong resolution of local variables

Dmitri Blinov created JEXL-287:
----------------------------------

             Summary: Wrong resolution of local variables
                 Key: JEXL-287
                 URL: https://issues.apache.org/jira/browse/JEXL-287
             Project: Commons JEXL
          Issue Type: Bug
    Affects Versions: 3.1
            Reporter: Dmitri Blinov


Consider the following example
{code:java}
x = 1; if (false) var x = 2; x
{code}
In this example the {{null}} is returned, which is the value of uninitialized local variable {{x}}. The expected behaviour is to return {{1}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)