tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Schneider" <rc4...@googlemail.com>
Subject Re: Strange behaviour after upgrade to 5.5.20
Date Thu, 04 Jan 2007 11:40:37 GMT
Hi Roger,

just a shot from the hip:

Maybe you want to overwrite the method public int hashcode() for the
objects being put into the hashmap - you should not rely on the
default implementation of java.lang.Object.hashcode().

Besides, HashMap is not thread-safe, have you tried it with a
thread-safe implementaion (i.e. Map m =
Collections.synchronizedMap(new HashMap(...));)

HTH

Greg
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message