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 2020/05/28 19:10:00 UTC

[jira] [Commented] (THRIFT-5220) DeepCopy() extension methods not generated when the IDL contains no service

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

Jens Geyer commented on THRIFT-5220:
------------------------------------

Workaround: Add an empty service definition to the IDL file.

> DeepCopy() extension methods not generated when the IDL contains no service
> ---------------------------------------------------------------------------
>
>                 Key: THRIFT-5220
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5220
>             Project: Thrift
>          Issue Type: Sub-task
>          Components: netstd - Compiler
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.14.0
>
>
> Despite having a huge test case, for the following IDL the *.Extensions.cs is not generated at all, leading to a compiler error due to the missing implementations at {{Three}}.
> {code}
> struct Foo  {
>  1 : required string One
>  2 : required string Two
>  3 : optional list<string> Three
>  4 : optional bool Four
>  5 : optional string Five
> }
>  {code}



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