aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/java_src
diff options
context:
space:
mode:
authorBruce Yinhe <[email protected]>2014-08-25 15:32:32 +0200
committerBruce Yinhe <[email protected]>2014-08-25 15:32:38 +0200
commit7003ce74a2dfe183c3f0dff5a0500ec611721e16 (patch)
tree3fe1414066f55dabd6d1e1df5430fb187362341e /lib/jinterface/java_src
parent8e0ccafd46cd0a7e5531084a0ded38d1064e5051 (diff)
parent0725d5cdf30b740b5c90b9fd355401161f14f401 (diff)
downloadotp-7003ce74a2dfe183c3f0dff5a0500ec611721e16.tar.gz
otp-7003ce74a2dfe183c3f0dff5a0500ec611721e16.tar.bz2
otp-7003ce74a2dfe183c3f0dff5a0500ec611721e16.zip
Merge branch 'vladdu/jinterface_fun_equals' into maint
OTP-12121 * vladdu/jinterface_fun_equals: jinterface: fix bug in equality for OtpErlangFun
Diffstat (limited to 'lib/jinterface/java_src')
-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