[jboss-jira] [JBoss JIRA] Created: (BPEL-197) integers are represented with a decimal point when used as source content

Alejandro Guizar (JIRA) jira-events at jboss.com
Fri Jul 14 21:43:11 EDT 2006


integers are represented with a decimal point when used as source content
-------------------------------------------------------------------------

                 Key: BPEL-197
                 URL: http://jira.jboss.com/jira/browse/BPEL-197
             Project: JBoss jBPM BPEL
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Engine
    Affects Versions: jBPM BPEL 1.1 beta 1
            Reporter: Alejandro Guizar
         Assigned To: Alejandro Guizar
             Fix For: jBPM BPEL 1.1 beta 2


When the evaluation of an expression results in a Number value, and this value is latter used to compute a source content TII, the resulting TII contains a decimal point and a trailing zero. 

The BPEL 2 spec, section 8.4.2, states:
> Once the information item is returned from the source, a TII will be computed based upon it. [...] This is analogous to the XPath 1.0 string() function.

However, jBPM BPEL converts an object of a type other than node-set to a string by calling the toString() method. This method does not match the behavior of the string() function for a number.

In particular, the XPath 1 spec, section 4.2 states:
> if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list