[infinispan-issues] [JBoss JIRA] (ISPN-9078) Spring CacheDelegate not handling null properly

Mike Noordermeer (JIRA) issues at jboss.org
Mon Apr 16 04:52:00 EDT 2018


Mike Noordermeer created ISPN-9078:
--------------------------------------

             Summary: Spring CacheDelegate not handling null properly
                 Key: ISPN-9078
                 URL: https://issues.jboss.org/browse/ISPN-9078
             Project: Infinispan
          Issue Type: Bug
          Components: Spring Integration
    Affects Versions: 9.2.1.Final
            Reporter: Mike Noordermeer


Spring {{CacheDelegate}} does not properly handle {{NULL}} values in several functions. I already mentioned this in ISPN-7224 but I think it got overlooked.

The list of issues, looking at the code:

* {{get(Object key, Class<T> type)}} does not unwrap {{NullValue.NULL}}
* {{get(Object key, Callable<T> valueLoader)}} does not unwrap {{NullValue.NULL}}
* {{get(Object key, Callable<T> valueLoader)}} does not put {{NullValue.NULL}} if the value returned from {{valueLoader}} is {{null}}
* {{putIfAbsent}} does not put {{NullValue.NULL}} is {{value}} is {{null}}

The other put functions and the main get function do work as expected.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list