You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Igor Vorobiov (JIRA)" <ji...@apache.org> on 2014/07/21 16:02:38 UTC
[jira] [Created] (ODE-1016) ASSIGN returns 0 when number function
with String argument is used
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)