Github user bgould commented on the issue:

    https://github.com/apache/thrift/pull/1120
  
    Also one thing to note is that the Java code generated from following valid 
IDL will still fail to compile because the names match Java primitive types... 
I know of no way to avoid this problem:
    
    ```thrift
    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
    }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to