Serializable compiled = MVEL.compileExpression("A+B+C");
Map vars = new HashMap();
vars.put("A", BigDecimal.ZERO);
vars.put("B", 13L);
vars.put("C", BigDecimal.ZERO);
VariableResolverFactory factory = new
MapVariableResolverFactory(vars);
Object res = MVEL.executeExpression(compiled, factory);
System.out.println("res=" + res);
System.out.println("res.getClass=" + res.getClass());
Output:
res=130
res.getClass=class java.lang.String
Expected:
res=13
res.getClass=class java.lang.Long
--
View this message in context:
http://camel.465427.n5.nabble.com/MVEL-bug-in-evaluate-expression-tp5769935.html
Sent from the Camel - Users mailing list archive at Nabble.com.