1.5.0.RC1
Pre-release
Pre-release
Enhancement
- Add compiler check for unimplemented methods for lifecycle
@BeforeMapping
/@AfterMapping
methods (#2674) - Opt-out of using builders via a processor option (#1661)
@DecoratedWith
does not work with incremental compilation in Gradle 7.3 (#2682)- Add support for Jakarta Dependency Injection API (#2567)
- Allow
@InheritInverseConfiguration
with@SubclassMapping
(s) (#2696) - MapStruct 1.4 regression: issue combining
qualifiedByName
,uses
and method chaining (#2538) - In 1.4 we strengthened the check for qualified methods and reported an error if there was no applicable qualifier. This strengthening led to 2-step mappings not to work properly when only one of the steps is qualified. With this issue it is now possible to use 2-step mappings with only one of the steps being qualified.
Bugs
- Fail to import nested enum when an enum constant is referenced (#2704)
- Added support for collections and maps with a no-args constructor (#2668)
- MapStruct does not always use builders in target-object (#1997)
- Cannot map from a covariant (extends) generic type (#2677)
- Detecting
javax.annotation.processing.Generated
in modular Java does not seem to work (#2629) - Using MappingTarget inside a Condition causes a FreeMarker template error (#2758)
- Illegal start of type when using a static method of a generic type (#2755)
- Mapping embedded map keys that contain characters that aren't valid for Java method names (#2748)
Documentation
@Condition
docs out of sync (#2689)- Add documentation about the new
NullValueMappingStrategy
for collections and maps (#2687) - Add documentation about when mappers are injected (#2686)
- Clarify documentation about builders and lifecycle
@AfterMapping
/@BeforeMapping
methods (#2719) - Correct description for example demonstrating default expression (#2709)
- Clarify documentation about Condition for update mappings (#2715)
Build
- Update tools gem for tests to run properly on Java 18+ (#2725)
- Support defining which test dependencies should be available during testing (#2728)
- Run CDI integration tests on Java 16+ (#2468)
Contributors
We'd like to thank all the contributors who worked on this release!