You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org> on 2008/04/28 08:09:57 UTC

[jira] Updated: (TUSCANY-2273) Return value of a method with @Init and @Destroy annotations must be a void

     [ https://issues.apache.org/jira/browse/TUSCANY-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated TUSCANY-2273:
-----------------------------------------

    Attachment: TUSCANY-2273.patch

TUSCANY-2273.patch:  Throws an exception if the return type is not void.

> Return value of a method with @Init and @Destroy annotations must be a void
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-2273
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2273
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Java Implementation Extension, Java SCA Verification Tests
>    Affects Versions: Java-SCA-1.2
>            Reporter: Vamsavardhana Reddy
>            Assignee: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-2273.patch
>
>
> Java Common Annotations and APIs v1.00:
> Sec 1.8.8 @Destroy - Lines 1226 and 1227:
> 1226 .... The method must have a void return value and 
> 1227 no arguments. ....
> Sec 1.8.11 @Init - Lines 1291 and 1292:
> 1291 ....The method must have a void return value and no
> 1292 arguments. ....
> Currently the code checks only for no arguments but not the return type.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.