You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Johan Stuyts (JIRA)" <ji...@apache.org> on 2008/05/19 14:49:55 UTC

[jira] Updated: (THRIFT-14) When using the Javabean style, the initialization of embedded struct members must be done using setters

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

Johan Stuyts updated THRIFT-14:
-------------------------------

    Attachment: UseSettersForInitializingMembersOfEmbeddedStructs.patch

This patch will use setters to initialize members of embeded structs instead of directly accessing the member when Javabean style structures are generated.

> When using the Javabean style, the initialization of embedded struct members must be done using setters
> -------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-14
>                 URL: https://issues.apache.org/jira/browse/THRIFT-14
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Java)
>            Reporter: Johan Stuyts
>         Attachments: UseSettersForInitializingMembersOfEmbeddedStructs.patch
>
>
> If a structure defines initial values for its embedded struct members, the generated code contains errors when generated using the Javabean style. An example can be found in the directory {{test}}. Struct {{Hello}} defined in {{SmallTest.thrift}} initializes {{val}} of embedded struct {{thinz}}. If the Javabean style is used setters must be used for initializing embedded struct members.

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