MapStruct v1.4.0.Beta3 Release Notes
Release Date: 2020-07-19 // almost 4 years ago-
โจ Enhancements
- ๐ Improve the error message when using
@Qualifier
in 2 step mapping methods (#2135) - Strip leading underscore when in local variable names (#2142)
- ๐ Allow
@Default
to overrule potentially existing parameterless default constructor. (#2150) - With this we actually changed the rules for selection a constructor. Now the following is done:- Constructor annotated with
@Default
(from any package) has highest precedence - If there is a single public constructor then it would be used to construct the object
- If a parameterless constructor exists then it would be used to construct the object, and the other constructors will be ignored
- Constructor annotated with
- ๐ Improve ambiguous method error description (#2156)
๐ Bug fixes
NullPointerException
when using onlyMapping#target
in mapping inheritance (#2139)- Selection JAXB object factory has been compromised between 1.3.1.Final and 1.4.0Beta2 (#2145)
- 0๏ธโฃ Internal error in the mapping processor: java.lang.ArrayIndexOutOfBoundsException: 0 (#2149) - This was caused by using
@BeanMapping(ignoreByDefault = true)
in combination with@Mapping(target = ".")
. This is now not allowed
- ๐ Improve the error message when using