Tom Lee created THRIFT-2469: ------------------------------- Summary: "java:fullcamel" option to automatically camel-case underscored attribute names Key: THRIFT-2469 URL: https://issues.apache.org/jira/browse/THRIFT-2469 Project: Thrift Issue Type: Bug Components: Java - Compiler Reporter: Tom Lee Priority: Minor
Currently the code generator will generate a getter method called "getFoo_bar" for a Thrift attribute called "foo_bar". This is unfortunate since it's considered "bad style" in Java, but is often unavoidable if you need to share a Thrift IDL with clients of another language (e.g. Ruby, where underscores are the norm). The attached patch adds support for a "fullcamel" option that does something resembling the opposite of "nocamel" by uppercasing both the first character in the name as well as any characters that follow an underscore in t_java_generator::get_cap_name. The underscores themselves are completely omitted. -- This message was sent by Atlassian JIRA (v6.2#6252)