Closed
Description
Stéphane Nicoll opened SPR-15693 and commented
AbstractAdaptingValueCache
has been refactored to offer a NullValue
holder that would resolve to a unique instance when deserialized (see #18129).
This infrastructure cannot be used if the cache manager implementation uses a custom serialization mechanism (for instance if the data is serialized in text using json). The redis cache manager is affected by this issue.
A simple/naive fix would be to make that instance public so that they can return what the base class is expecting.
Affects: 4.3.9
Issue Links:
- JCacheCache doesn't recognize null values in other JVMs [SPR-13553] #18129 JCacheCache doesn't recognize null values in other JVMs
- AbstractValueAdaptingCache#toStoreValue should throw an exception if the value is null and allowNulls is false [SPR-15173] #19739 AbstractValueAdaptingCache#toStoreValue should throw an exception if the value is null and allowNulls is false
Referenced from: commits spring-projects/spring-data-redis@c998abf