[ 
https://issues.apache.org/jira/browse/THRIFT-5056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17008107#comment-17008107
 ] 

Jens Geyer commented on THRIFT-5056:
------------------------------------

Any proposals maybe? We accept PRs ... 
http://thrift.apache.org/docs/HowToContribute

> Netstd Generated GetHashCode() returns same value in many common cases
> ----------------------------------------------------------------------
>
>                 Key: THRIFT-5056
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5056
>             Project: Thrift
>          Issue Type: Bug
>          Components: netstd - Compiler
>    Affects Versions: 0.13.0
>            Reporter: Emi
>            Priority: Major
>
> Simple Thrift example which breaks the generated GetHashCode() implementation:
> {code:java}
> struct Simple
> {
>   1: optional bool A;
>   2: optional bool B;
> }
> {code}
> The generated GetHashCode() implementation using netstd generator returns the 
> same value if one only of the A,B fields is set:
> {code:java}
> Assert.NotEqual(new Simple{A = true}.GetHashCode(), new Simple{B = 
> true}.GetHashCode());
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to