Camel
  1. Camel
  2. CAMEL-4011

type converters should return NULL for Double.NaN values instead of 0

    Details

      Description

      see this discussion...http://camel.465427.n5.nabble.com/XPath-for-an-Integer-td4422095.html

      Update the ObjectConverter.toXXX() methods to check for Double.NaN and return NULL instead of relying on Number.intValue()

        Activity

        Hide
        Ben O'Day added a comment -

        patch for review...

        Show
        Ben O'Day added a comment - patch for review...
        Hide
        Ben O'Day added a comment -

        patch committed...

        Show
        Ben O'Day added a comment - patch committed...
        Hide
        Babak Vahdat added a comment -

        see my comments on the revision 1127744 here:

        http://camel.465427.n5.nabble.com/XPath-for-an-Integer-td4422095.html

        Show
        Babak Vahdat added a comment - see my comments on the revision 1127744 here: http://camel.465427.n5.nabble.com/XPath-for-an-Integer-td4422095.html
        Hide
        Ben O'Day added a comment -

        thanks, just added the check for Float.NaN as well

        Show
        Ben O'Day added a comment - thanks, just added the check for Float.NaN as well

          People

          • Assignee:
            Ben O'Day
            Reporter:
            Ben O'Day
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development