[infinispan-dev] Null values (somehow) allowed?

Mircea Markus mircea.markus at jboss.com
Wed Jan 4 04:54:12 EST 2012


On 3 Jan 2012, at 20:51, Galder Zamarreño wrote:
> Hi all,
> 
> Related to https://issues.jboss.org/browse/ISPN-1661, the fix is clear, but how come didn't this blow before?
> 
> The following code works fine:
> 
>      cache.put("hello", null);
> 
> I was always under the impression that null values (as well as null keys) were not accepted, which I think is good thing btw.
+1
This is also enforced by the contract of Map.put
> 
> I'm pretty sure this check used to be in place before, but did we somehow lost it?
> 
> Anyway, I"m adding some tests in org.infinispan.api package.
> 
> Cheers,
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev




More information about the infinispan-dev mailing list