OCaml generator does not prefix methods of included structs with their type
---------------------------------------------------------------------------
Key: THRIFT-1105
URL: https://issues.apache.org/jira/browse/THRIFT-1105
Project: Thrift
Issue Type: Bug
Components: OCaml - Compiler
Affects Versions: 0.7
Environment: Mac OSX 10.6
Reporter: Joel Reymont
Fix For: 0.7
--- Doc.thrift
struct Document {
1: string user_name
2: string document_name
}
typedef Document page_id
--- Ranking.thrift
include "Doc.thrift"
struct Request {
1: Doc.page_id page
}
---
You will see
#set_page (read_document iprot)
generated in read_request, instead of the proper
#set_page (Doc_types.read_document iprot)
Generated code fails to compile as a result.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira