aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/java_src
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2010-09-20 14:44:57 +0200
committerBjörn Gustavsson <[email protected]>2010-09-20 16:14:00 +0200
commita1170100ee8679d4b3113204df511db8896abd97 (patch)
treef4dbfbd6fbc662924b9b83b1ac9bc0c30ad3f274 /lib/jinterface/java_src
parentc9a40f46a37bd0891779d9204244a86ffb34a683 (diff)
downloadotp-a1170100ee8679d4b3113204df511db8896abd97.tar.gz
otp-a1170100ee8679d4b3113204df511db8896abd97.tar.bz2
otp-a1170100ee8679d4b3113204df511db8896abd97.zip
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.
Diffstat (limited to 'lib/jinterface/java_src')
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java5
1 files changed, 5 insertions, 0 deletions
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.
*