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

Cannot convert from Collection to RegularEnumSet [SPR-17619] #22151

Closed
spring-issuemaster opened this Issue Dec 22, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

spring-issuemaster commented Dec 22, 2018

Madhura Bhave opened SPR-17619 and commented

In Spring Boot, when binding EnumSet values, the CollectionToCollectionConverter is called with a target type of RegularEnumSet. CollectionFactory tries to create a new instance of RegularEnumSet and fails.

We could probably fix this by changing this to an isAssignable check.

The entire stacktrace is in this comment.


Affects: 4.3.21, 5.0.11, 5.1.3

Reference URL: spring-projects/spring-boot#15539

Referenced from: commits 21baa72, 8685f9f, 31a2472

Backported to: 5.0.12, 4.3.22

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