In case anyone is curious, I think CHM disallows null values so that
putIfAbsent() can work efficiently. Hashtable's restriction is probably
just because it was written 11 years ago :-)

 

From: tc-dev-boun...@lists.terracotta.org
[mailto:tc-dev-boun...@lists.terracotta.org] On Behalf Of Tim Eck
Sent: Saturday, January 31, 2009 10:21 AM
To: tc-dev@lists.terracotta.org
Subject: Re: [tc-dev] Why are null values illegal in ConcurrentStringMap?

 

CHM and Hashtable don't allow null values either :-)

 

From: tc-dev-boun...@lists.terracotta.org
[mailto:tc-dev-boun...@lists.terracotta.org] On Behalf Of Steven Harris
Sent: Saturday, January 31, 2009 10:15 AM
To: tc-dev@lists.terracotta.org
Subject: Re: [tc-dev] Why are null values illegal in ConcurrentStringMap?

 

That would be simple but I'm not talking about keys I'm talking about
values :-)

 

Cheers,

Steve Harris

 
<http://www.miketec.org/serendipity/index.php?/archives/7-Oracle-and-Postg
res-Redux.html> "Terracotta.  It's ten pounds of awesome in a five pound
sack."

 

 

 

 

On Jan 31, 2009, at 11:40 PM, Geert Bevin wrote:

 

Very simply, neither Hashtable nor ConcurrentHashMap allow null keys  
and the first one is backing the DSO version of CSM and the second one  
the non DSO version.

Take care,

Geert

On 31 Jan 2009, at 15:33, Steven Harris wrote:



Just curious. Clearly an explicitly decision, probably a good reason  

but I don't recall what it is?

 

Cheers,

Steve Harris

"Terracotta.  It's ten pounds of awesome in a five pound sack."

 

 

 

 

_______________________________________________

tc-dev mailing list

tc-dev@lists.terracotta.org

http://lists.terracotta.org/mailman/listinfo/tc-dev


--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com

_______________________________________________
tc-dev mailing list
tc-dev@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-dev

 

_______________________________________________
tc-dev mailing list
tc-dev@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to