aboutsummaryrefslogtreecommitdiff
path: root/docs/third_party.md
diff options
context:
space:
mode:
authorBrendan Ribera <brendan.ribera@gmail.com>2016-09-20 11:07:42 -0700
committerBrendan Ribera <brendan.ribera@gmail.com>2016-09-20 11:07:42 -0700
commit05aa0df532b263bdfca1ac3f8493db7022950239 (patch)
treed6d4948e6a219ded90acd026045bec379bd2eb85 /docs/third_party.md
parent7b00595ddf8622ae429ef37de8ea2f44b6333ad0 (diff)
downloadprotobuf-05aa0df532b263bdfca1ac3f8493db7022950239.tar.gz
protobuf-05aa0df532b263bdfca1ac3f8493db7022950239.tar.bz2
protobuf-05aa0df532b263bdfca1ac3f8493db7022950239.zip
Fix hash computation for JRuby's RubyMessage
`System.identityHashCode` returns a hash that does not consider a Message's values. This means two Messages with identical values will not have identical hashCodes. This patch uses the pattern from RubyMap to combine the hashCodes from all values in a given message and produce a unique, consistent, value-based hash.
Diffstat (limited to 'docs/third_party.md')
0 files changed, 0 insertions, 0 deletions