aboutsummaryrefslogtreecommitdiff
path: root/cmake/libprotobuf.cmake
diff options
context:
space:
mode:
authorBrendan Ribera <brendan.ribera@gmail.com>2016-09-20 11:07:42 -0700
committerBo Yang <teboring@google.com>2016-09-22 00:18:12 +0000
commit525c6327ab45c60bcd7804804eb0dd74c0ba86fe (patch)
tree627e8798224149cb9640f84c79e7b46df6e5fff0 /cmake/libprotobuf.cmake
parentb8e7e892c805c0e3b41238549af2d94a4c2403d3 (diff)
downloadprotobuf-525c6327ab45c60bcd7804804eb0dd74c0ba86fe.tar.gz
protobuf-525c6327ab45c60bcd7804804eb0dd74c0ba86fe.tar.bz2
protobuf-525c6327ab45c60bcd7804804eb0dd74c0ba86fe.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 'cmake/libprotobuf.cmake')
0 files changed, 0 insertions, 0 deletions