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 the compiler is run we get the following compilation error.
If the getAttributes method is ommitted, everything compiles fine, so it seems Mapstruct mistakenly believes the field should be writable on the basis that it has an accessor.
NOTE: I haven't tested this with other collection type classes.
Erroneous
Unmapped target propertycompilation error when private collection field has agetmethod but nosetmethod.Versions: Java 11, Mapstruct 1.5.2-Final.
Given the following classes:
When the compiler is run we get the following compilation error.
If the
getAttributesmethod is ommitted, everything compiles fine, so it seems Mapstruct mistakenly believes the field should be writable on the basis that it has an accessor.NOTE: I haven't tested this with other collection type classes.
Reporoducible project here