You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jeff Torson (JIRA)" <ji...@apache.org> on 2018/02/28 21:47:00 UTC

[jira] [Created] (CAMEL-12306) String -> Enum type conversion no longer work if Jackson converter is enabled

Jeff Torson created CAMEL-12306:
-----------------------------------

             Summary: String -> Enum type conversion no longer work if Jackson converter is enabled
                 Key: CAMEL-12306
                 URL: https://issues.apache.org/jira/browse/CAMEL-12306
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.17.1
            Reporter: Jeff Torson


Enabling the Jackson type converter causes trying to convert from a String to Enum to fail. I fixed my offending code for this to set an enum constant on the header but I would have not expected this to happen.  I suggest checking if the class type is an enum in JacksonTypeConverters and returning null so that a fallback converter can be used instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)