-
Bug
-
Resolution: Done
-
Major
-
9.4.1.Final
-
None
SpringCacheTest,java
public void testPutNullError() { //when//then cache.put("key", null); cache.get("key", String.class); }
We get
java.lang.IllegalStateException: Cached value is not of required type [java.lang.String]: org.infinispan.spring.provider.NullValue@76f7d241
JavaDoc for this method states this method does not make difference between cached null and null value.
Note: This variant of
{@code get}does not allow for differentiating
- between a cached
{@code null}
value and no cache entry found at all.
- Use the standard
{@link #get(Object)}
variant for that purpose instead.
- is cloned by
-
JBEAP-16217 (7.2.z) ISPN-9705/ HHH-12457 - SpringCache Put null value and get(key, clazz) IllegalStateException
- Closed
- is related to
-
ISPN-9706 SpringCache: get("key", Callable) not working with null values
- Closed