[erlang-patches] [jinterface] added OtpMbox.hash()

Raimo Niskanen <>
Mon Sep 20 17:10:58 CEST 2010

On Mon, Sep 20, 2010 at 03:00:17PM +0200, Vlad Dumitrescu wrote:
> Hi,
> The OtpMbox class was missing the hash() method while overriding
> equals(). This can cause problems when when using jinterface in a
> larger Java application, for which there are currently no tests in
> OTP. The fix is straightforward, if a test is required please let me
> know.
> git fetch git://github.com/vladdu/otp.git otpmbox_hash

Excuse me for a maybe stupid question...

Why is it necessary?

Calling self.hashCode() from a class inheriting from Object
should be done through inheritance without the patch.

Is there some tool complaining if both are not overridden
even if the result is correct (or is it not?), or have
have the rules changed since the old days, or am
I missing something?...

> best regards,
> Vlad
> ________________________________________________________________
> erlang-patches (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:


/ Raimo Niskanen, Erlang/OTP, Ericsson AB

More information about the erlang-patches mailing list