Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9
-
None
-
Mac OS X 10.7.5
Description
Thrift-0.9 Java compiler generates non-compiling code when both the following conditions happen:
- thrift file name includes a character which is not a valid java identifier (i.e. '-')
- thrift file includes 'const' fields
Thrift generates the Java file named <thriftFileName>Constants.java which is not compiling because of the non-identifier in the thriftFileName.
Earlier thrift versions are fine because they generate only Constants.java file without prefixing thrift file name to it.
Please find attached an example thrift file.
Attachments
Issue Links
- relates to
-
THRIFT-1383 Spaces in thrift input file lead to incorrectly generated code
- Open
-
THRIFT-1916 Compiled ruby code generates warning if field with name "fields" is present
- Open
-
THRIFT-1895 Delphi: reserved variable name "result" not detected properly
- Closed