You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2014/07/22 22:14:39 UTC
[jira] [Resolved] (THRIFT-2633) remove 'this is a dummy struct'
structs from generated erlang
[ https://issues.apache.org/jira/browse/THRIFT-2633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier resolved THRIFT-2633.
---------------------------------
Resolution: Fixed
Assignee: Roger Meier
committed!
thanks
-roger
> remove 'this is a dummy struct' structs from generated erlang
> -------------------------------------------------------------
>
> Key: THRIFT-2633
> URL: https://issues.apache.org/jira/browse/THRIFT-2633
> Project: Thrift
> Issue Type: Improvement
> Components: Erlang - Compiler
> Reporter: alisdair sullivan
> Assignee: Roger Meier
> Priority: Minor
> Labels: erlang
>
> the erlang backend adds 'this is a dummy struct' struct_info/1 (and struct_info_ext/1) clause to generated files which is probably incorrect behavior. it should probably instead be a function clause that catches all undefined structs and returns either 'undefined' or throws a 'function_clause' error. i've supplied a patch that does the latter (as that is the current behavior if you call struct_info/1 or struct_info_ext/1 with an undefined struct name)
--
This message was sent by Atlassian JIRA
(v6.2#6252)