Skip to content

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
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