Henri Biestro created JEXL-430: ---------------------------------- Summary: JexlArithmetic behavior change Key: JEXL-430 URL: https://issues.apache.org/jira/browse/JEXL-430 Project: Commons JEXL Issue Type: Bug Affects Versions: 3.4.0 Reporter: Henri Biestro Fix For: 3.4.1
{*}Regression{*}: {code:java} "1.1" > 0 {code} returns *true* in 3.3. But it throws an exception in 3.4.0. {code:java} java.lang.ArithmeticException: Object comparison:(1.1 GT 0) at org.apache.commons.jexl3.JexlArithmetic.doCompare(JexlArithmetic.java:806) at org.apache.commons.jexl3.JexlArithmetic.compare(JexlArithmetic.java:503) at org.apache.commons.jexl3.JexlArithmetic.greaterThan(JexlArithmetic.java:892) at org.apache.commons.jexl3.internal.Interpreter.visit(Interpreter.java:1448) at org.apache.commons.jexl3.parser.ASTGTNode.jjtAccept(ASTGTNode.java:19) at org.apache.commons.jexl3.internal.Interpreter.visit(Interpreter.java:1532) at org.apache.commons.jexl3.parser.ASTJexlScript.jjtAccept(ASTJexlScript.java:137) at org.apache.commons.jexl3.internal.Interpreter.interpret(Interpreter.java:843) at org.apache.commons.jexl3.internal.Script.execute(Script.java:239) {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)