[
https://issues.apache.org/jira/browse/THRIFT-3501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan Greenberg updated THRIFT-3501:
-----------------------------------
Summary: Forward slash in comment causes compiler error (was: Forward
slash in docblock comment causes compiler error)
> 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
> Priority: Minor
>
> 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)