Igor Vorobiov created ODE-1016: ---------------------------------- Summary: ASSIGN returns 0 when number function with String argument is used Key: ODE-1016 URL: https://issues.apache.org/jira/browse/ODE-1016 Project: ODE Issue Type: Bug Components: BPEL Runtime Affects Versions: 1.3.6 Reporter: Igor Vorobiov
org.apache.ode.bpel.elang.xpath10.runtime.XPath10ExpressionRuntime.evaluate(OExpression, EvaluationContext) works incorrect when number function with String argument is used. Following statement should have check for NaN: if (ret instanceof Double) { // safely convert a double into a long if they are numerically equal. This // makes 1 from 1.0, which is more reliable when calling web services. if (Double.compare((Double)ret, Math.ceil((Double)ret)) == 0) { // the double is actually an int/long ret = ((Double)ret).longValue(); } } -- This message was sent by Atlassian JIRA (v6.2#6252)