You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2015/01/20 23:36:35 UTC
[jira] [Resolved] (THRIFT-2942) CSharp generate invalid code for
property named read or write
[ https://issues.apache.org/jira/browse/THRIFT-2942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-2942.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9.3
Committed, including another fix for {{Foo_result}} more or less caused by the same issue.
> CSharp generate invalid code for property named read or write
> -------------------------------------------------------------
>
> Key: THRIFT-2942
> URL: https://issues.apache.org/jira/browse/THRIFT-2942
> Project: Thrift
> Issue Type: Bug
> Components: C# - Compiler
> Affects Versions: 0.9.2, 1.0
> Reporter: Luca Sacchi
> Assignee: Jens Geyer
> Fix For: 0.9.3
>
> Attachments: THRIFT-2942-CSharp-generate-invalid-code-for-propert.patch
>
>
> C# generator will produce invalid code for this
> struct CsFail {
> 1: optional bool read
> 2: optional bool write
> }
> this will generate code that that will not compile, due to name clash between :
> public bool Read
> {
> get
> {
> return _read;
> }
> set
> {
> __isset.@read = true;
> this._read = value;
> }
> }
> and Read method implementation
> public void Read (TProtocol iprot)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)