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/05/27 04:55:56 UTC
[jira] Resolved: (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 ]
David Reiss resolved THRIFT-14.
-------------------------------
Resolution: Fixed
Assignee: David Reiss
I committed this patch with no changes.
> 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
> Assignee: David Reiss
> 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.