Skip to content

AbstractValueAdaptingCache#toStoreValue should throw an exception if the value is null and allowNulls is false [SPR-15173] #19739

@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-15173 and commented

If a Cache is configured to not allow null values, toStoreValue can still return null instead of throwing an exception. This leads to a non informative exception message if the underlying cache provider tries to store the value down the road.


Affects: 4.3.5

Issue Links:

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