Skip to content

ConcurrentMapCacheManager has interdependent setters [SPR-12026] #16642

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-12026 and commented

ConcurrentMapCacheManager's setCacheNames(…) transitively calls isAllowNullValues() which can be influenced by setAllowNullValues(…). This means the order of the setter calls becomes important and is not guaranteed when the type is used in XML configuration.

We've got a similar issue reported for Spring Data Redis (see DATAREDIS-328) and decided to provide a dedicated FactoryBean for usage in XML.


Affects: 3.2.10, 4.0.6, 4.1 RC1

Issue Links:

Referenced from: commits acbd61b, 7848412

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions