Skip to content
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

Trying to reproduce the bug mentioned in #144 #145

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

schuettec
Copy link
Contributor

@schuettec schuettec commented May 11, 2022

Trying to reproduce the bug mentioned in #144

Findings:
Currently the mapper analyzes the type of properties. If the source
value of a property is an instance of a Map, the map conversion is
triggered.
The map conversion creates a map instance using Collectors.toMap
function. The map instance might not be assignment compatible with the
target value of the bean.

This is some kind of hidden convention: The problem does not occur as
long as the bean properties use super types like Map, List, Set etc.

Findings:
Currently the mapper analyzes the type of properties. If the source
value of a property is an instance of a Map, the map conversion is
triggered.
The map conversion creates a map instance using Collectors.toMap
function. The map instance might not be assignment compatible with the
target value of the bean.

This is some kind of hidden convention: The problem does not occur as
long as the bean properties use super types like Map, List, Set etc.
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.

None yet

1 participant