Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.1
-
None
-
Important
Description
Hi,
take a look at this example:
JexlEngine jexlEngine = new JexlEngine();
Expression jexlExpresssion = jexlEngine.createExpression("first.second.name");
HashMap map = new HashMap();
map.put("first.second.name", "RIGHT");
map.put("name", "WRONG");
MapContext context = new MapContext(map);
Object value = jexlExpresssion.evaluate(context);
System.err.println("Value:" + value);
I would expect getting "Value:RIGHT" printed out but it was "Value:WRONG".
If I don't put "first.second.name" in the map, the output is "Value:WRONG", too. Here I would expect NULL as result.