You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Reiss (JIRA)" <ji...@apache.org> on 2008/07/14 21:36:32 UTC

[jira] Resolved: (THRIFT-42) javabean generated code assumes camel-case and makes very ugly getters and setters if not camel cased properly

     [ https://issues.apache.org/jira/browse/THRIFT-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Reiss resolved THRIFT-42.
-------------------------------

    Resolution: Fixed
      Assignee: Kevin Ballard

> javabean generated code assumes camel-case and makes very ugly getters and setters if not camel cased properly
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-42
>                 URL: https://issues.apache.org/jira/browse/THRIFT-42
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Java)
>            Reporter: Bryan Duxbury
>            Assignee: Kevin Ballard
>            Priority: Trivial
>         Attachments: 0001-java-Add-nocamel-option-to-not-CamelCase-field-acce.patch, 0001-java-Add-nocamel-option-to-not-CamelCase-field-acce.patch
>
>
> Let's say you name your fields in underscored lower case (my_cool_field). The bean-style generator only upcases the first character of the name and mashes it onto get, set, etc. You end up with something that looks like "getMy_cool_field". This gross hybrid is pretty terrible. 
> I propose that we either add a case-style compiler option, or at least try and detect the casing and convert it appropriately.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.