Mantis - Resin
Viewing Issue Advanced Details
5672 minor always 02-24-14 07:20 09-10-14 14:29
cowan  
ferg  
normal  
closed 4.0.38  
no change required  
none    
none  
0005672: JCache iterator does not returns null for entry.getValue
The entries of an iterator created on a ClusterCache return null for entry.getValue if the value is a non-primitive. For example below, the Cache is Cache<String,Date>. However if the Cache was Cache<String,String>, the bug does not occur and the value is returned from the entry.getValue.

        cache.put("x" , new Date());
        Iterator<Entry<String,Date>> it = cache.iterator();
       
        while (it.hasNext()) {
             Entry<String,Date> entry = it.next();
             log(entry.getKey() + " (entry) = " + entry.getValue()); // returns null
             log(entry.getKey() + " (get) = " + cache.get(entry.getKey())); // returns date
        }
Rep by C Bergoglio

Notes
(0006502)
ferg   
09-10-14 14:29   
Resin 4.0 JCache frozen except for critical bugs.