Comment #2 on issue 288 by [email protected]: Generated java hashcode() function inconsistent across JVMs.
http://code.google.com/p/protobuf/issues/detail?id=288

Here's a simple patch that replaces the call to getDescriptorForType.hashCode() with getClass().getName().hashCode(). Since equals is checking (o instanceof myType), this fulfills the contract with a cheaper and less complicated hashCode() call.

Haven't tested yet, can get the build working and test later.

Attachments:
        proto-288.patch  633 bytes

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to