You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Serkan Camurcuoglu (JIRA)" <ji...@apache.org> on 2009/04/03 13:38:14 UTC

[jira] Created: (ODE-570) Integer to string conversion does not work as expected

Integer to string conversion does not work as expected
------------------------------------------------------

                 Key: ODE-570
                 URL: https://issues.apache.org/jira/browse/ODE-570
             Project: ODE
          Issue Type: Bug
          Components: BPEL Runtime
    Affects Versions: 2.0
         Environment: N/A
            Reporter: Serkan Camurcuoglu
            Priority: Minor


According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:

"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"

but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ODE-570) Integer to string conversion does not work as expected

Posted by "Mark Ford (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695367#action_12695367 ] 

Mark Ford commented on ODE-570:
-------------------------------

Does it work if you try this:

string(number($myVarIn.TestPart))



> Integer to string conversion does not work as expected
> ------------------------------------------------------
>
>                 Key: ODE-570
>                 URL: https://issues.apache.org/jira/browse/ODE-570
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Serkan Camurcuoglu
>            Priority: Minor
>         Attachments: HelloWorld2.zip
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:
> "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"
> but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ODE-570) Integer to string conversion does not work as expected

Posted by "Serkan Camurcuoglu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Serkan Camurcuoglu updated ODE-570:
-----------------------------------

    Attachment: HelloWorld2.zip

This attachment includes a sample bpel process to demonstrate the issue. You can see the value of the tmpVar variable in the debug logs after the first assignment is made. Also the output variable of the process demonstrates the problem.

> Integer to string conversion does not work as expected
> ------------------------------------------------------
>
>                 Key: ODE-570
>                 URL: https://issues.apache.org/jira/browse/ODE-570
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Serkan Camurcuoglu
>            Priority: Minor
>         Attachments: HelloWorld2.zip
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:
> "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"
> but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ODE-570) Integer to string conversion does not work as expected

Posted by "Serkan Camurcuoglu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695372#action_12695372 ] 

Serkan Camurcuoglu commented on ODE-570:
----------------------------------------

No it didn't work.

> Integer to string conversion does not work as expected
> ------------------------------------------------------
>
>                 Key: ODE-570
>                 URL: https://issues.apache.org/jira/browse/ODE-570
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Serkan Camurcuoglu
>            Priority: Minor
>         Attachments: HelloWorld2.zip
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:
> "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"
> but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ODE-570) Integer to string conversion does not work as expected

Posted by "David Carver (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858994#action_12858994 ] 

David Carver commented on ODE-570:
----------------------------------

This looks like it is an issue with the Jaxen XPath engine that is being used.

http://jaxen.codehaus.org/xref/org/jaxen/function/StringFunction.html

The issue is that it is always formatting the number as a Double value instead of basing it on the type.  So integers aren't being formatted correctly.


> Integer to string conversion does not work as expected
> ------------------------------------------------------
>
>                 Key: ODE-570
>                 URL: https://issues.apache.org/jira/browse/ODE-570
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Serkan Camurcuoglu
>            Assignee: Karthick Sankarachary
>            Priority: Minor
>             Fix For: 1.3.5, 2.0-beta3
>
>         Attachments: HelloWorld2.zip
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:
> "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"
> but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ODE-570) Integer to string conversion does not work as expected

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Boisvert reassigned ODE-570:
---------------------------------

    Assignee: Karthick Sankarachary

> Integer to string conversion does not work as expected
> ------------------------------------------------------
>
>                 Key: ODE-570
>                 URL: https://issues.apache.org/jira/browse/ODE-570
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Serkan Camurcuoglu
>            Assignee: Karthick Sankarachary
>            Priority: Minor
>         Attachments: HelloWorld2.zip
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:
> "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"
> but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ODE-570) Integer to string conversion does not work as expected

Posted by "Tammo van Lessen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tammo van Lessen updated ODE-570:
---------------------------------

    Fix Version/s: 2.0-beta3

> Integer to string conversion does not work as expected
> ------------------------------------------------------
>
>                 Key: ODE-570
>                 URL: https://issues.apache.org/jira/browse/ODE-570
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Serkan Camurcuoglu
>            Assignee: Karthick Sankarachary
>            Priority: Minor
>             Fix For: 1.3.5, 2.0-beta3
>
>         Attachments: HelloWorld2.zip
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:
> "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"
> but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

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

        

[jira] Updated: (ODE-570) Integer to string conversion does not work as expected

Posted by "Tammo van Lessen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tammo van Lessen updated ODE-570:
---------------------------------

    Fix Version/s: 1.3.5

> Integer to string conversion does not work as expected
> ------------------------------------------------------
>
>                 Key: ODE-570
>                 URL: https://issues.apache.org/jira/browse/ODE-570
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Serkan Camurcuoglu
>            Assignee: Karthick Sankarachary
>            Priority: Minor
>             Fix For: 1.3.5
>
>         Attachments: HelloWorld2.zip
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> According to XPath 1.0 specification section 4.2 (http://www.w3.org/TR/xpath#section-String-Functions) the string() function should work this way for integers:
> "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"
> but for example using the string() function on an integer with value 2 results in the string "2.0" which is not correct according to the specification. The result should be the string "2" according to the specification.

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