Skip to content

Conversation

@filiphr
Copy link
Member

@filiphr filiphr commented Aug 18, 2024

Fixes #3668

This fixes the issue. However, the cause is not in the way this was fixed. The main issue why this happens is due to the fact that in 1.6 we treat generics a bit better and we determine that we can use something when mapping the abstract target type.

If the Parent and ParentDto targets are not abstract we would still have the MapStruct compile error. However, this is not a regression as in 1.5 we would generate code that does not compile. I'll create a separate issue to look into this.

@filiphr filiphr merged commit c89b616 into mapstruct:main Aug 24, 2024
@filiphr filiphr deleted the 3668 branch August 24, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent ambiguous mapping method error: generic vs raw types

1 participant