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/09/21 20:21:44 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=12633087#action_12633087 ]
Bryan Duxbury commented on THRIFT-100:
--------------------------------------
Looks like an improvement to me, nice job.
> 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.