Skip to content

JCacheCache doesn't recognize null values in other JVMs [SPR-13553] #18129

Closed
@spring-projects-issues

Description

@spring-projects-issues

John J Kennedy opened SPR-13553 and commented

The JCacheCache class uses an instance variable called "NULL_HOLDER" to check for a null value. The problem is that it uses == as the test. This won't work in multiple JVMs since one JVM could put a value in cache and another could retrieve it.

I believe it should use a class-based comparision like
storeValue.getClass() == NullHolder.class


Affects: 3.2.14, 4.1.7, 4.2.1

Issue Links:

Referenced from: commits de93290, 6c138d3, 112781f

Backported to: 4.1.8, 3.2.15

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions