Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
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.