Re: Seeming Non-determinism in Java Programs

Bob Lee <[email protected]> Sun, 6 Apr 2008 19:37:03 -0700
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
Maybe one of your equals() or hashCodes() has a bug? Did you use
@Override on all of them?

Bob

On Sun, Apr 6, 2008 at 7:10 PM, Randall R Schulz <[email protected]> wrote:
> On Sunday 06 April 2008 18:27, Endre Stølsvik wrote:
>  > Randall R Schulz wrote:
>  > > This is perplexing to me. How can multiple independent (but
>  > > identical) invocations of the JVM produce highly varying
>  > > executions?
>  > >
>  > > My first question is this: What phenomenon / dynamics can cause
>  > > this sort of behavior? While I'm open to the possibility that it is
>  > > a bug (permit me to say a _subtle_ bug), I'm experienced enough to
>  > > know the proper implementation of equals() and hashCode(), e.g.
>  >
>  > Something to do with concurrency and order (if you have more than one
>  > thread in operation),
>
>  Nope. This a single-threaded program. Multiple identical invocations of
>  the JVM (from the command line) produce wildly varying results.
>
>
>  > ...
>  >
>  > Endre.
>
>
>  Randall Schulz
>
>
>
>  ===================================
>  This list is hosted by DevelopMentor(R)  http://www.develop.com
>
>  View archives and manage your subscription(s) at http://discuss.develop.com
>

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

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