[
https://issues.apache.org/jira/browse/THRIFT-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James E. King III resolved THRIFT-4684.
---------------------------------------
Resolution: Fixed
Assignee: James E. King III
Fix Version/s: 1.0
> Missing namespace and un-used private fields in WCF fault classes when enable
> WCF in C# code generation
> -------------------------------------------------------------------------------------------------------
>
> Key: THRIFT-4684
> URL: https://issues.apache.org/jira/browse/THRIFT-4684
> Project: Thrift
> Issue Type: Bug
> Components: C# - Compiler
> Affects Versions: 0.11.0
> Reporter: Shaoyu Zhang
> Assignee: James E. King III
> Priority: Trivial
> Labels: csharp
> Fix For: 1.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When WCF is enabled in C# code generation, a commented line is generated:
> //using System.ServiceModel;
> However, attributes like OperationContract still need this.
> Also when generating fields in fault classes, we should follow the same
> behavior in normal struct, otherwise we could generate unused private fields,
> when auto properties are also generated.
> Here is a draft fix for the potential bug:
> [https://github.com/zsy056/thrift/commit/d00049d94887fb1bfda1efea5a3efe94ccbad472]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)