You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2011/02/18 13:21:38 UTC
[jira] Commented: (JEXL-109) error when i define a variable named
..
[ 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