[ https://issues.apache.org/jira/browse/THRIFT-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052787#comment-13052787 ]
Wing Lian commented on THRIFT-891: ---------------------------------- So the OP means the clean_up_doctext parser doesn't respect the following in a .thrift file as a valid comment. I added that to cassandra.thrift and got the same error he is getting, but I believe this isn't really a bug. {noformat} /**foobar **/{noformat} > Comments are not properly handled in some cases > ----------------------------------------------- > > Key: THRIFT-891 > URL: https://issues.apache.org/jira/browse/THRIFT-891 > Project: Thrift > Issue Type: Bug > Components: Compiler (General) > Affects Versions: 0.4 > Reporter: Lars Francke > Assignee: Jake Farrell > Priority: Minor > Fix For: 0.7 > > > There's a problem with some comments. > A comment like > {noformat} > /** foobar **/ > {noformat} > works but > {noformat} > /**foobar **/ > {noformat} > does not. Basically if there are two {{*}} at the beginning it must be > followed by a space to parse otherwise I get the following: > {noformat} > thrift: src/main.cc:512: char* clean_up_doctext(char*): Assertion > `docstring.length() <= strlen(doctext)' failed. > Aborted > {noformat} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira