Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.10.0, 0.11.0
-
None
Description
Consider the following IDL, which is legal and leads to successful source code generation using the Java generator:
struct int { 1: i32 val } struct boolean { 1: bool val } struct long { 1: i64 val } struct short { 1: i16 short } struct char { 1: i16 val } struct Primitives { 1: i32 int, 2: i64 long, 3: i16 short, 4: bool boolean, 5: i16 char }
The generated does not compile because the struct names and fields names are reserved keywords in Java, even though they are not reserved words in the Thrift compiler.
Attachments
Attachments
Issue Links
- links to