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 2016/01/28 21:58:39 UTC

[jira] [Updated] (THRIFT-3501) Forward slash in comment causes compiler error

     [ https://issues.apache.org/jira/browse/THRIFT-3501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer updated THRIFT-3501:
-------------------------------
    Attachment: THRIFT-3501-Forward-slash-in-comment-causes-compiler.patch

> Forward slash in comment causes compiler error
> ----------------------------------------------
>
>                 Key: THRIFT-3501
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3501
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (General)
>            Reporter: Ryan Greenberg
>            Assignee: Jens Geyer
>            Priority: Minor
>         Attachments: THRIFT-3501-Forward-slash-in-comment-causes-compiler.patch
>
>
> This comment in a .thrift file will cause a parse error:
> {code}
> /**
>  * /
>  */
> {code}
> For example:
> {code}
> $ thrift -version                 
> Thrift version 0.9.3
> $ cat example.thrift              
> namespace java com.example
> /**
>  * /
>  */
> struct Foo {}
> $ thrift --gen java example.thrift
> [ERROR:/Users/ryangreenberg/workspace/source/example.thrift:3] (last token was '/')
> Unexpected token in input: "/"
> {code}
> This bug was encountered because of a reference to an absolute file path in a docblock comment (e.g. {{* /var/log/…}})



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