You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using mapstruct 1.3.0.Beta2 with unmappedTargetPolicy = ReportingPolicy.ERROR target classes with a static one parameter factory method fail the build with the error: Unmapped target property: "of".
Thanks for spotting this @bgK it was not just for fluent setters we were actually considering all public methods. We have now changed this and only public not static methods can be candidates for getters / setters
When using mapstruct 1.3.0.Beta2 with
unmappedTargetPolicy = ReportingPolicy.ERROR
target classes with a static one parameter factory method fail the build with the error:Unmapped target property: "of"
.Example target class
Example source class
Example mapper
Expected result
The mapper is generated without error, and without adding configuration to ignore the static factory method.
Perhaps static methods should not be considered as fluent setters?
The text was updated successfully, but these errors were encountered: