You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2008/08/21 01:16:44 UTC
[jira] Updated: (THRIFT-100) In java:beans generator, when calling
setX, if null is passed, set isset accordingly
[ https://issues.apache.org/jira/browse/THRIFT-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury updated THRIFT-100:
---------------------------------
Patch Info: [Patch Available]
> In java:beans generator, when calling setX, if null is passed, set isset accordingly
> ------------------------------------------------------------------------------------
>
> Key: THRIFT-100
> URL: https://issues.apache.org/jira/browse/THRIFT-100
> Project: Thrift
> Issue Type: Improvement
> Components: Compiler (Java)
> Reporter: Bryan Duxbury
> Priority: Minor
> Attachments: thrift-100.patch
>
>
> The java beans generator creates getters and setters for all fields. However, it assumes that when you call set whatever, that the value passed is a non-null value, and sets isset to true no matter what. At the very least, it should set isset based on whether the passed value is null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.