Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Strange behaviour after upgrade to 5.5.20

Gregor Schneider

2007-01-04

Replies:

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@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.