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
Thanks for the detailed example. It really helped us find the problem and prepare a fix in PR #2612
The reason why it works when you remove unmappedSourcePolicy is because the default value for that is ignore, so it is ignore. If you set it to ReportPolicy.WARNING you'll see a warning.
Given files:
MemberDto.java
MemberEntity.java
MemberMapper.java
And following method added to org.mapstruct.itest.records.RecordsTest:
Test failed with compilation error:
If I remove
unmappedSourcePolicy
from@Mapping
, it just passes well.(But actually I cannot find any warning when I removed
unmappedSourcePolicy
, maybe the maven test task just remove warnings?)Environment
MapStruct 1.5.0-SNAPSHOT (as of 8b84f5b)
Java
The text was updated successfully, but these errors were encountered: