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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.17.1
    • Fix Version/s: 2.21.0
    • Component/s: camel-jackson
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: