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

Hudson commented on THRIFT-3354:
--------------------------------

SUCCESS: Integrated in Thrift #1665 (See 
[https://builds.apache.org/job/Thrift/1665/])
THRIFT-3354 Fix word-extraction substr bug in initialism code (jensg: rev 
0621e1fc949a7e67c418b465f7f10ee082ea4a93)
* compiler/cpp/src/generate/t_go_generator.cc


> Fix word-extraction substr bug in initialism code
> -------------------------------------------------
>
>                 Key: THRIFT-3354
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3354
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>    Affects Versions: 0.9.3
>            Reporter: Jens Geyer
>            Assignee: Prashant V
>             Fix For: 0.9.3, 0.9.4
>
>
> GitHub user prashantv opened a pull request:
>     https://github.com/apache/thrift/pull/625
>     Fix word-extraction substr bug in initialism code
>     Initialisms were not handled in the second word or later. E.g. for the 
> given Thrift file,
>     ```thrift
>     service S {
>       void get_id()
>     }
>     ```
>     
>     The generated code was using `GetIdArgs` instead of `GetIDArgs`. This was 
> happening because fix_common_initialism was passing the position of the 
> underscore to substr when extracting the word, when substr expects a length.
> You can merge this pull request into a Git repository by running:
>     $ git pull https://github.com/prashantv/thrift initialism_fix
> Alternatively you can review and apply these changes as the patch at:
>     https://github.com/apache/thrift/pull/625.patch
> To close this pull request, make a commit to your master/trunk branch
> with (at least) the following in the commit message:
>     This closes #625
>     
> ----
> commit 7df89525116a456b25fff2c903078fece4cb6a2a
> Author: Prashant Varanasi <[email protected]>
> Date:   2015-09-24T22:06:47Z
>     Fix word-extraction substr bug in initialism code
>     
>     Initialisms were not handled in the second word or later.
>     
>     fix_common_initialism was passing the position of the underscore to
>     substr when extracting the word, when substr expects a length.
> ----
> ---
> If your project is set up for it, you can reply to this email and have your
> reply appear on GitHub as well. If your project does not have this feature
> enabled and wishes so, or if the feature is enabled but not working, please
> contact infrastructure at [email protected] or file a JIRA ticket
> with INFRA.
> ---



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to