You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Cristian Lorenzetto (JIRA)" <ji...@apache.org> on 2011/02/18 00:11:12 UTC

[jira] Created: (JEXL-109) error when i define a variable named ..

error when i define a variable named <LITERAL>.<LITERAL>.  
-----------------------------------------------------------

                 Key: JEXL-109
                 URL: https://issues.apache.org/jira/browse/JEXL-109
             Project: Commons JEXL
          Issue Type: Bug
            Reporter: Cristian Lorenzetto




-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JEXL-109) error when i define a variable named ..

Posted by "Sebb (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated JEXL-109:
----------------------

    Fix Version/s:     (was: 2.1)
    
> error when i define a variable named <LITERAL>.<LITERAL>.  
> -----------------------------------------------------------
>
>                 Key: JEXL-109
>                 URL: https://issues.apache.org/jira/browse/JEXL-109
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Cristian Lorenzetto
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JEXL-109) error when i define a variable named ..

Posted by "Henri Biestro (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JEXL-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996371#comment-12996371 ] 

Henri Biestro commented on JEXL-109:
------------------------------------

Do you have a test case for the kind of expression you'd like to use?
For instance, something like the following:
<code>
    public void test109() throws Exception {
        JexlEngine jexl = new JexlEngine();
        Object value;
        JexlContext context = new MapContext();
        context.set("foo.bar", 40);
        value = jexl.createExpression("foo.bar + 2").evaluate(context);
        assertEquals(42, value);
    }
</code>
If you are really trying to define a variable named "foo.bar.", this is not a bug but an RFE that I'd vote against adding without a use-case.
Cheers

> error when i define a variable named <LITERAL>.<LITERAL>.  
> -----------------------------------------------------------
>
>                 Key: JEXL-109
>                 URL: https://issues.apache.org/jira/browse/JEXL-109
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Cristian Lorenzetto
>


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (JEXL-109) error when i define a variable named ..

Posted by "Henri Biestro (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro resolved JEXL-109.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s: 2.0.2

Since it was never possible to do it, this would be a new feature. Besides the fact that no scripting language I know allows this syntax, there is no strong case for it. Thus, wont fix.

> error when i define a variable named <LITERAL>.<LITERAL>.  
> -----------------------------------------------------------
>
>                 Key: JEXL-109
>                 URL: https://issues.apache.org/jira/browse/JEXL-109
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Cristian Lorenzetto
>             Fix For: 2.0.2
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (JEXL-109) error when i define a variable named ..

Posted by "Sebb (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb closed JEXL-109.
---------------------

    
> error when i define a variable named <LITERAL>.<LITERAL>.  
> -----------------------------------------------------------
>
>                 Key: JEXL-109
>                 URL: https://issues.apache.org/jira/browse/JEXL-109
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Cristian Lorenzetto
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira