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 12:21:55 UTC
[jira] Created: (THRIFT-14) When using the Javabean style, the
initialization of embedded struct members must be done using setters
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
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.
[jira] Resolved: (THRIFT-14) When using the Javabean style, the
initialization of embedded struct members must be done using setters
Posted by "David Reiss (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (THRIFT-14) When using the Javabean style, the
initialization of embedded struct members must be done using setters
Posted by "Johan Stuyts (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (THRIFT-14) When using the Javabean style, the
initialization of embedded struct members must be done using setters
Posted by "David Reiss (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Reiss reassigned THRIFT-14:
---------------------------------
Assignee: Johan Stuyts (was: David Reiss)
> 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: 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.