Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12306

String -> Enum type conversion no longer work if Jackson converter is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 2.17.1
    • 2.21.0
    • camel-jackson
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            mavenjeff Jeff Torson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: