Open
Description
Why reviewing PR #179 @hduelme pointed out that the Wrong usage of mappers factory does not work (i.e. it does not remove it) with the following code:
@Mapper(componentModel = "spring")
abstract class WrongComponentModelMapper {
static {
Mappers.getMapper(WrongComponentModelMapper.class);
}
Target map(Target source);
}
or
@Mapper(config = MyConfig.class, componentModel = "spring")
interface WrongComponentModelMapper {
WrongComponentModelMapper INSTANCE = () -> {
return Mappers.getMapper(WrongComponentModelMapper.class);
};
Target map(Target source);
}
We need to see if we can support this.
Metadata
Assignees
Labels
No labels