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

Vlad Dumitrescu <>
Mon Sep 20 19:11:51 CEST 2010

On Mon, Sep 20, 2010 at 17:10, Raimo Niskanen
<> wrote:
> 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?...

Not a stupid question, but almost every static analysis tool complains
about this.

In any case, the patch calls self.hash(), not super.hash(). Whatever
is compared in equals() should be included when computing the hash.

best regards,

More information about the erlang-patches mailing list