• 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
..
RubyBuilder.java Loading commit data...
RubyDescriptor.java Loading commit data...
RubyDescriptorPool.java Loading commit data...
RubyEnum.java Loading commit data...
RubyEnumBuilderContext.java Loading commit data...
RubyEnumDescriptor.java Loading commit data...
RubyFieldDescriptor.java Loading commit data...
RubyMap.java Loading commit data...
RubyMessage.java Loading commit data...
RubyMessageBuilderContext.java Loading commit data...
RubyOneofBuilderContext.java Loading commit data...
RubyOneofDescriptor.java Loading commit data...
RubyProtobuf.java Loading commit data...
RubyRepeatedField.java Loading commit data...
SentinelOuterClass.java Loading commit data...
Utils.java Loading commit data...