On Tue, 2011-02-22 at 17:02 +0200, Pekka Enberg wrote: > This patch is needed to run Jython 2.5.2 RC 4 under JamVM and GNU Classpath > CVS > HEAD. It turns out Jythin bootstrap is bit hairy and assumes HashMap.put() > checks for hashCode equality before invoking Object.equals(). > [...] > 2011-02-22 Pekka Enberg <penb...@kernel.org> > > * java/util/HashMap: > + (put): Check for key hashCode equality before invoking > + Object.equals() to fix compatibility issue with Jython.
That seems a fine optimization in itself. But any application depending on it is pretty ewwww :{ O well, that is how it is I guess. We had something similar in the initialization order of eclipse, where they depended on equals being called in a particular direction. sigh. Thanks, Mark