JCacheCache doesn't recognize null values in other JVMs [SPR-13553] #18129
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
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
The text was updated successfully, but these errors were encountered: