Hi,

I think that not only Double.NaN should be catched but also Float.NaN.

If you add the following lines in ObjectConverterTest the test will fail:

        assertEquals(null, ObjectConverter.toFloat(Float.NaN));
        assertEquals(null, ObjectConverter.toLong(Float.NaN));

So that I think that ALL the following checks in ObjectConverter:

...
            if (value.equals(Double.NaN)) {
                return null;
            }
...

Should be changed extended to 

...
            if (value.equals(Float.NaN) || value.equals(Double.NaN)) {
                return null;
            }
... 

Or am I missing something?

Regards, Babak

--
View this message in context: 
http://camel.465427.n5.nabble.com/XPath-for-an-Integer-tp4422095p4428290.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to