Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17619

Cannot convert from Collection to RegularEnumSet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.21, 5.0.11, 5.1.3
    • Fix Version/s: 4.3.22, 5.0.12, 5.1.4
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            mbhave Madhura Bhave
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 37 weeks, 6 days ago