Jens Geyer created THRIFT-2147:
----------------------------------
Summary: Thrift IDL syntax allows for dotted identifier names
Key: THRIFT-2147
URL: https://issues.apache.org/jira/browse/THRIFT-2147
Project: Thrift
Issue Type: Bug
Components: Compiler (General)
Reporter: Jens Geyer
Assignee: Jens Geyer
Attachments: dotted_identifiers.thrift
Hi all,
Recently I noticed that the Thrift grammar allows for identifiers that are
illegal in most (if not all) supported languages, like:
{code}
enum Additional.Requirement {
Speak.My.Language = 0,
}
typedef list< Additional.Requirement> Even.Further.Requirements
struct Place.Order {
3 : optional Even.Further.Requirements My.Further.Requirements
}
{code}
and so on.
The compiler generates code from that without a single complaining. Of course,
the generated code does not compile.
Before I submit a patch to address this, I'd like to know
a) Is there any (supported) language where such a construct would be legal and
expected?
b) Anyone around here that knows whys the grammar allows this? By intention or
simply a bug?
Thanks,
Jens
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira