camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-4959) Incorrect caching type converter misses for NaN
Date Tue, 31 Jan 2012 08:24:10 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-4959:
-------------------------------

                Priority: Minor  (was: Major)
           Fix Version/s: 2.10.0
                          2.9.1
                          2.8.5
    Estimated Complexity: Novice  (was: Unknown)
    
> Incorrect caching type converter misses for NaN
> -----------------------------------------------
>
>                 Key: CAMEL-4959
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4959
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.3
>            Reporter: Andrey Utkin
>            Priority: Minor
>             Fix For: 2.8.5, 2.9.1, 2.10.0
>
>
> When converting Double or Float with value NaN, org.apache.camel.converter.ObjectConverter
returns "null". But org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(Class,
Exchange, Object) interpret this "null" as "suitable conversion not found" and cache misses.
This lead to completely forgetting of conversion for given types.
> For example, when conversing Double to Long, all works until Double is NaN. After that,
conversion for "Double-to-Long" marked as misses. And  camel stop do any conversion for Double-to-Long
until restart.
> Possible solution is to modify ObjectConverter`s methods to return "Void.TYPE" instead
of "null" for NaN.

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

        

Mime
View raw message