axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2C-257) free methods should return void not axis2_status_t
Date Tue, 05 Dec 2006 09:52:21 GMT
     [ http://issues.apache.org/jira/browse/AXIS2C-257?page=all ]

Samisa Abeysinghe updated AXIS2C-257:
-------------------------------------

    Fix Version/s: 1.0.0
         Assignee: Sanjaya Ratnaweera

> free methods should return void not axis2_status_t
> --------------------------------------------------
>
>                 Key: AXIS2C-257
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-257
>             Project: Axis2-C
>          Issue Type: Improvement
>    Affects Versions: Current (Nightly)
>            Reporter: Samisa Abeysinghe
>         Assigned To: Sanjaya Ratnaweera
>             Fix For: 1.0.0
>
>
> Although the allocator free method returns void, you've made the free
> methods of objects return an axis2_status_t.  However, your code almost
> always seems to ignore the returned status.  Either 
> a) free methods should return a status and all callers should always
> check it and deal with,  or
> b) free methods should return void
> I would suggest (b).  There's nothing useful you can do with an error
> from a free method, and there's no need for the user supplied free
> function to return an error.  The situation where free might need to
> generate an error are the case where memory has got corrupted through
> programmer error, but a return code isn't the right way to deal wit this
> situation.
> (based on comments by James)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message