• Brendan Ribera's avatar
    Fix hash computation for JRuby's RubyMessage · 05aa0df5
    Brendan Ribera authored
    `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.
    05aa0df5
Name
Last commit
Last update
..
ext/google/protobuf_c Loading commit data...
lib/google Loading commit data...
src/main Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
Gemfile Loading commit data...
Gemfile.lock Loading commit data...
README.md Loading commit data...
Rakefile Loading commit data...
google-protobuf.gemspec Loading commit data...
pom.xml Loading commit data...
travis-test.sh Loading commit data...