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/09/20 23:05: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 ]
David Reiss updated THRIFT-100:
-------------------------------
Attachment: thrift-100-v2.patch
How about this?
> 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
> Assignee: Bryan Duxbury
> Priority: Minor
> Attachments: thrift-100-v2.patch, 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.