Jeff Skjonsby created ISPN-9698:
-----------------------------------
Summary: 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
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}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)