From a1170100ee8679d4b3113204df511db8896abd97 Mon Sep 17 00:00:00 2001 From: Vlad Dumitrescu Date: Mon, 20 Sep 2010 14:44:57 +0200 Subject: add OtpMbox.hash() method The OtpMbox class was missing the hash() method while overriding equals(). This can cause problems when using jinterface in a larger Java application. --- lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/jinterface') diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java index 4146bd3ced..a9712aa2ba 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java @@ -678,6 +678,11 @@ public class OtpMbox { return m.self.equals(self); } + @Override + public int hashCode() { + return self.hashCode(); + } + /* * called by OtpNode to deliver message to this mailbox. * -- cgit v1.2.3