MapStruct v1.4.1.Final Release Notes

Release Date: 2020-10-11 // almost 4 years ago
  • ๐Ÿ› Bugs

    • @InheritConfiguration is broken when using multiple source parameters of the same type (#2221)
    • 0๏ธโƒฃ @Mapping with defaultValue and method argument where is missing source does nothing (#2220)
    • ๐Ÿš€ NPE when running MapStruct from IntelliJ 2020.3 EAP (#2215) - 1.4.1.Final is the first MapStruct version that supports the new improved IntelliJ experience for annotation processor compiling. In order to avoid the NPE in older MapStruct releases you'll have to build your project with -Djps.track.ap.dependencies=false. More info about this is in IDEA-250718
    • 0๏ธโƒฃ @Mapping needs to define source parameter with defaultValue if you have two arguments in 1.4.0.Final (#2214)
    • Mapping with qualifying and only target defined should implicitly look for a matching property in one of the parameters (#2206)
    • Deep cloning creates intermediate methods for primitive arrays (#2213)

Previous changes from v1.4.0.Final

  • ๐Ÿš€ For full upgrade instructions please read the release notes for the previous 1.4 releases:

    ๐Ÿ› Bugs

    • ๐Ÿ— Possible regression: Wrong mapper code generation when using Builder (#2195)
    • Qualifier is ignored in case of name based mapping when there are multiple source parameters (#2125)
    • Invalid code generated for enum mapping when field name starts with underscore '_' and continues with digits (#2197)