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 2014/05/29 00:46:02 UTC

[jira] [Created] (THRIFT-2555) excessive "unused field" comments

Jens Geyer created THRIFT-2555:
----------------------------------

             Summary: excessive "unused field" comments
                 Key: THRIFT-2555
                 URL: https://issues.apache.org/jira/browse/THRIFT-2555
             Project: Thrift
          Issue Type: Bug
          Components: Go - Compiler
            Reporter: Jens Geyer
            Assignee: Jens Geyer
             Fix For: 0.9.2


{code:title=test.thrift}
namespace go thrift2555

struct Element3 {
	1	: i32 plus_1
	10	: i32 plus_10
}

service FooBar {
	Element3 Convert(3: Element3 three)
}
{code}

produces

{code:title=ttypes.go}
type Element3 struct {
	Plus_1 int32 `thrift:"plus_1,1"`
	// unused field # 2
	// unused field # 3
	// unused field # 4
	// unused field # 5
	// unused field # 6
	// unused field # 7
	// unused field # 8
	// unused field # 9
	Plus_10 int32 `thrift:"plus_10,10"`
}
{code}

which starts to become annoying the larger the gaps between the numbers are.




--
This message was sent by Atlassian JIRA
(v6.2#6252)