[
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)