Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-570

Integer to string conversion does not work as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 1.3.6, 1.4
    • BPEL Runtime
    • None
    • N/A

    Description

      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.

      Attachments

        1. HelloWorld2.zip
          14 kB
          Serkan Camurcuoglu

        Activity

          People

            vanto Tammo van Lessen
            serkanc Serkan Camurcuoglu
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified