[infinispan-issues] [JBoss JIRA] (ISPN-9698) SpringCache doesn't unwrap null values in get(key, valueLoader) overload
Katia Aresti (Jira)
issues at jboss.org
Thu May 16 04:16:00 EDT 2019
[ https://issues.jboss.org/browse/ISPN-9698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Katia Aresti closed ISPN-9698.
------------------------------
Resolution: Duplicate Issue
> 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