Closed
Description
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:
- AbstractValueAdaptingCache does not allow for flexible null value serialization [SPR-15693] #20252 AbstractValueAdaptingCache does not allow for flexible null value serialization