- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
Sam Brannen opened SPR-12533 and commented
Status Quo
#17089 introduced conversion support for EnumSet and EnumMap in CollectionFactory; however, the newly introduced support contradicts the existing contract for the related methods by creating a copy of the supplied set or map, thereby potentially including elements in the returned collection when the returned collection should in fact be empty.
Deliverables
-  Refactor createApproximateCollection()so that it returns an emptyEnumSet.
-  Refactor createApproximateMap()so that it returns an emptyEnumMap.
Affects: 4.1.3
Issue Links:
- Default conversion support for EnumSet / EnumMap [SPR-12483] #17089 Default conversion support for EnumSet / EnumMap
- CollectionFactory API is not type-safe [SPR-12537] #17142 CollectionFactory API is not type-safe
Referenced from: commits aec284a
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug