MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.25k stars 326 forks source link

Fixing incorrect mapping generation when ShallowCopyForSameType, UseDestinationValue and UseDestinationValue are used #601

Closed rafalka closed 1 year ago

rafalka commented 1 year ago

This PR Resolves #599 and resolves #600.

Originally the destination transform was applied also when destination value was used creating not-compilable code.

Also when UseDestinationValue and ShallowCopyForSameType were set, then were not called and mapping was not generated

andrerav commented 1 year ago

Nice work! Thank you!