]
Tristan Tarrant reassigned ISPN-9698:
-------------------------------------
Assignee: Katia Aresti
SpringCache doesn't unwrap null values in get(key, valueLoader)
overload
------------------------------------------------------------------------
Key: ISPN-9698
URL:
https://issues.jboss.org/browse/ISPN-9698
Project: Infinispan
Issue Type: Bug
Components: Spring Integration
Affects Versions: 9.4.1.Final
Reporter: Jeff Skjonsby
Assignee: Katia Aresti
Priority: Major
This test case fails:
{code:java}
@Test
public void nullValuesAreNotUnwrapped() {
Configuration config = new ConfigurationBuilder().build();
SpringEmbeddedCacheManager cacheManager = new SpringEmbeddedCacheManager(new
DefaultCacheManager(config));
SpringCache cache = cacheManager.getCache("foo");
cache.put("nullable", null);
assertNull(cache.get("nullable", () -> "a"));
}
{code}