aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/java_src/com
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2014-05-19 12:18:58 +0200
committerVlad Dumitrescu <[email protected]>2014-07-21 18:02:17 +0200
commit0725d5cdf30b740b5c90b9fd355401161f14f401 (patch)
tree7f5295fbf8787d08a86a73e48e58ed56db86bafa /lib/jinterface/java_src/com
parente7e750a40ff875e6d62f1e7904470222ac8de269 (diff)
downloadotp-0725d5cdf30b740b5c90b9fd355401161f14f401.tar.gz
otp-0725d5cdf30b740b5c90b9fd355401161f14f401.tar.bz2
otp-0725d5cdf30b740b5c90b9fd355401161f14f401.zip
jinterface: fix bug in equality for OtpErlangFun
Arrays (here: md5 and freeVars) must not be compared with equals, which is broken.
Diffstat (limited to 'lib/jinterface/java_src/com')
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangFun.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangFun.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangFun.java
index fc104e9564..c52909acc5 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangFun.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangFun.java
@@ -94,7 +94,7 @@ public class OtpErlangFun extends OtpErlangObject implements Serializable {
return false;
}
} else {
- if (!md5.equals(f.md5)) {
+ if (!Arrays.equals(md5, f.md5)) {
return false;
}
}
@@ -104,7 +104,7 @@ public class OtpErlangFun extends OtpErlangObject implements Serializable {
if (freeVars == null) {
return f.freeVars == null;
}
- return freeVars.equals(f.freeVars);
+ return Arrays.equals(freeVars, f.freeVars);
}
@Override