[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 13:27:00 EST 2018


     [ https://issues.jboss.org/browse/ISPN-9698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Skjonsby updated ISPN-9698:
--------------------------------
    Git Pull Request: https://github.com/infinispan/infinispan/pull/6387


> 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}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list