Skip to content

#3821 feat: add support for custom exception in subclass mapping#3853

Merged
filiphr merged 3 commits intomapstruct:mainfrom
tangyang9464:feature/issues#3821
May 17, 2025
Merged

#3821 feat: add support for custom exception in subclass mapping#3853
filiphr merged 3 commits intomapstruct:mainfrom
tangyang9464:feature/issues#3821

Conversation

@tangyang9464
Copy link
Contributor

close issue#3821
I implemented subclassExhaustiveException with reference to subclassExhaustiveStrategy, so this custom exception supports configuration on mapper, mapperConfig, and BeanMapping.

plz review @filiphr

…ping

Signed-off-by: TangYang <tangyang9464@163.com>
@tangyang9464 tangyang9464 force-pushed the feature/issues#3821 branch from 0bf813e to a64e8a4 Compare May 11, 2025 14:08
Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks as expected @tangyang9464, I've left one comment and can you please make sure that you remove the whitespace changes from the BeanMappingMethod, you don't need to reformat the entire file, only what you have changed.

@tangyang9464
Copy link
Contributor Author

For the first time, I applied the entire file formatting. I found that there were many changes. I gave up and then the CICD failed. So I executed the formatting again. I thought that all the code in the project was in line with the specifications. But it seems that some historical code was not like that.

I will manually remove those changes that are not mine.

Signed-off-by: TangYang <tangyang9464@163.com>
@tangyang9464
Copy link
Contributor Author

@filiphr plz review again

@filiphr filiphr merged commit 6e6fd01 into mapstruct:main May 17, 2025
6 checks passed
@filiphr
Copy link
Member

filiphr commented May 17, 2025

Thanks @tangyang9464

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.

Add support for custom exception for subclass exhaustive strategy for @SubclassMapping mapping

2 participants