Skip to content

Check for constructor mappings before type handlers #2430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

matthewmillett-instaclustr
Copy link

@matthewmillett-instaclustr matthewmillett-instaclustr commented Jan 20, 2022

Constructor mappings can be explicitly defined at the mapper function level, and therefore they should be checked for first before checking for a typehandler which can resolve the return type.

Also adding in some small opportunistic changes to improve logging for ResultMapping validation - currently error messages only include the property which is usually null, but including the javaType may provide more contextual information about the exception.

Should resolve #2427.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeHandler incorrectly selects super classes/interfaces
2 participants