diff options
author | Vlad Dumitrescu <[email protected]> | 2014-05-19 12:18:58 +0200 |
---|---|---|
committer | Vlad Dumitrescu <[email protected]> | 2014-07-21 18:02:17 +0200 |
commit | 0725d5cdf30b740b5c90b9fd355401161f14f401 (patch) | |
tree | 7f5295fbf8787d08a86a73e48e58ed56db86bafa /lib/jinterface/java_src/com/ericsson/otp | |
parent | e7e750a40ff875e6d62f1e7904470222ac8de269 (diff) | |
download | otp-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/ericsson/otp')
-rw-r--r-- | lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangFun.java | 4 |
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 |