You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume the new behavior is due to the fact that the two messages have the same Proto serialization ("\b\x01" in both cases), but I think the previous behavior was more correct. Generally, comparing two instances of different classes should return false. Even ignoring that, the inner enum types are different. Just because the numerical values happen to be the same does not mean the messages are equal.
Anything else we should know about your project / environment
N/A
The text was updated successfully, but these errors were encountered:
What version of protobuf and what language are you using?
Version: v3.15.0
Language: Ruby
What operating system (Linux, Windows, ...) and version?
macOS Catalina 10.15.7
What runtime / compiler are you using (e.g., python version or gcc version)
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
What did you do?
Run the following Ruby script:
What did you expect to see
With google-protobuf 3.14.0, the script returns:
What did you see instead?
With google-protobuf 3.15.0, the script returns:
I assume the new behavior is due to the fact that the two messages have the same Proto serialization (
"\b\x01"
in both cases), but I think the previous behavior was more correct. Generally, comparing two instances of different classes should return false. Even ignoring that, the inner enum types are different. Just because the numerical values happen to be the same does not mean the messages are equal.Anything else we should know about your project / environment
N/A
The text was updated successfully, but these errors were encountered: