Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9698

SpringCache doesn't unwrap null values in get(key, valueLoader) overload

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 9.4.1.Final
    • Spring Integration
    • None

      This test case fails:

       @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"));
          }
      
      

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

            There are no comments yet on this issue.

              karestig@redhat.com Katia Aresti
              jskjons Jeff Skjonsby (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: