Skip to content

LinkedCaseInsensitiveMap does not correctly implement putAll() [SPR-7969] #12624

Closed
@spring-projects-issues

Description

@spring-projects-issues

Kristian Andersen opened SPR-7969 and commented

org.springframework.util.LinkedCaseInsensitiveMap does not override the putAll() method.

The inherited java.util.HashMap.putAll() calls an internal method putImpl() and this leads to inconsistent data in LinkedCaseInsensitiveMap.
Entries added by calling LinkedCaseInsensitiveMap.putAll() can not be retrieved by LinkedCaseInsensitiveMap.get()

The attached testcase demonstrates this behaviour.


Affects: 3.0.5, 3.1 RC1

Attachments:

Issue Links:

Referenced from: commits b391629, 5856db6

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions