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

Fix issue Set cannot be cast to List(#830) #864

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

hoangytm
Copy link
Contributor

Issue link

All PRs MUST have a corresponding issue linked and issue number in PR name. i.e.:

[ISSUE: 830] Fix issue Set cannot be cast to List
link issue: #830

Approach

the issue from this code
else if (CollectionUtils.isCollection(srcFieldType) && MappingUtils.isSupportedMap(destCollectionType)) { // List to Map value result = mapListToList(srcObj, (List<?>)srcCollectionValue, fieldMap, destObj); }
Both List and Set are Collection, when try to cast Set to List, it will throws exception

@garethahealy garethahealy merged commit 8efd82f into DozerMapper:master Jul 22, 2024
3 checks passed
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.

2 participants