[infinispan-issues] [JBoss JIRA] (ISPN-9698) SpringCache doesn't unwrap null values in get(key, valueLoader) overload

Jeff Skjonsby (Jira) issues at jboss.org
Fri Nov 9 11:54:00 EST 2018


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)


More information about the infinispan-issues mailing list