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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
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)