#2278 inherited property ignored entirely due to ignore on nested level#2332
#2278 inherited property ignored entirely due to ignore on nested level#2332sjaakd merged 1 commit intomapstruct:masterfrom
Conversation
I thought about that as well. It comes down on how you see merging of properties. I'll check what the "normal" behavior is (so how we merge properties). |
|
I guess.. in the end I flipped just 2 arguments (not properly done when refactoring) and needed to add a null check for when the source is absent (I thought about making it equal to the target but I remember somehow that's not always right, for reversing you need to specify them both, but in case of ignoreByDefault you activate individual mappings)... I also added a reference mapper.. Just to show how it is suppose to work in the normal forward case. And I copied the testcase from the other issue.. To show that works as well. And a testcase (MapperB) to show that you can actually redefine on a nested level "forgetting" all on deeper nested levels in the same branch. |
|
Replaces #2321 |
I'll have a look.. |
I created a test. But it still fails. The current fix is fixing stacking of inherited(reverse) properties. This seems to be a problem in our beanmapping (the reproducer does not call the logic that is fixed). Let treat that as a separate issue. I can push the reproducer after merging this one. Perhaps you can have a look as well? |
|
Sounds good. Thanks for trying it out. Go ahead and merge this. I'll take a look at the reproducer and try to find a fix |
See #2341 I'm not sure whether I've got time for it today.. It seems to be located somewhere in the |
…el (mapstruct#2332) Co-authored-by: sjaakd <sjaakderksen@zonnet.nl>
No description provided.