Skip to content

Method annotated with @AfterMapping is not called #2955

@kris2kris

Description

@kris2kris

Method annotate with @AfterMapping is no more called in 1.5.2.Final version when using a method with 2 arguments.
It works in 1.4.2.Final and it works when using a method with one argument and an object returned.
Example:

void updateDomain(MyDto dto, @MappingTarget MyDomain domain);

@AfterMapping
public default MyDomain doAfterMapping(@MappingTarget MyDomain domain, MyDto dto) {
    return domain;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions