Re: Seeming Non-determinism in Java Programs

Ray Tayek <[email protected]> Sun, 6 Apr 2008 22:26:07 -0700
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
At 08:31 PM 4/6/2008, you wrote:
>On Sunday 06 April 2008 20:05, Ray Tayek wrote:
>...
> > if you have overridden hashCode and equals, make sure you are not
> > modifying any properties that change the hashcode after the object is
> > in the collection or map.
>
>Yeah. I've thought of that, too.
>
>I can't say I can guarantee all these things are correct, but I've
>scrutinized the code and cannot find any problems.

i did that once. it took me *days* to find that bug. maybe try making
as much as possible final if you can.

thanks

---
vice-chair http://ocjug.org/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com