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

camel-mapstruct: Improve support for Mappers defined as abstract classes

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      If you define MapStruct mappings using an abstract class, then some unwanted TypeConverters get registered for the equals and wait methods. In the logs you see:

      Added MapStruct type converter: long -> void
      Added MapStruct type converter: class java.lang.Object -> boolean
      

      This happens because they pass the DefaultMapStructFinder.discoverMappings check for a single method arg ,but the void return type is checked against Void.class and not the primitive void.class. We should probably just filter out anything with a primitive return type.

      Attachments

        Activity

          People

            jamesnetherton James Netherton
            jamesnetherton James Netherton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: