Closed
Description
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:
- LinkedCaseInsensitiveMapTest.java (604 bytes)
Issue Links:
- LinkedCaseInsensitiveMap should explicitly implement putIfAbsent and computeIfAbsent [SPR-16926] #21465 LinkedCaseInsensitiveMap should explicitly implement putIfAbsent and computeIfAbsent