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/05/30 23:00:17 UTC
[jira] [Resolved] (THRIFT-3174) Initialism code in the Go compiler
doesn't check first word
[ https://issues.apache.org/jira/browse/THRIFT-3174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-3174.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9.3
Assignee: Paul Magrath
Committed, thanks!
> Initialism code in the Go compiler doesn't check first word
> -----------------------------------------------------------
>
> Key: THRIFT-3174
> URL: https://issues.apache.org/jira/browse/THRIFT-3174
> Project: Thrift
> Issue Type: Sub-task
> Components: Go - Compiler
> Affects Versions: 0.9.3
> Reporter: Paul Magrath
> Assignee: Paul Magrath
> Priority: Minor
> Fix For: 0.9.3
>
>
> The Go compiler, when checking for common initialisms in the process of converting to camelcase, fails to check the first word of the name, only checking the subsequent words. As such, if you have a Thrift struct like:-
> {code}
> struct Foo {
> 1: string user_id,
> 2: string server_url,
> 3: string id,
> }
> {code}
> You get a Go struct of the form:-
> {code}
> type Foo struct {
> UserID string `thrift:"user_id,1" json:"user_id"`
> ServerURL string `thrift:"server_url,2" json:"server_url"`
> Id string `thrift:"id,3" json:"id"`
> }
> {code}
> Instead of:-
> {code}
> type Foo struct {
> UserID string `thrift:"user_id,1" json:"user_id"`
> ServerURL string `thrift:"server_url,2" json:"server_url"`
> ID string `thrift:"id,3" json:"id"`
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)