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/26 11:46:55 UTC

[jira] Updated: (TUSCANY-2272) @Init and @Destroy annotations on a non-public method

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

Vamsavardhana Reddy updated TUSCANY-2272:
-----------------------------------------

    Description: 
Java Common Annotations and APIs Specification v1.00 - Sec 1.2.4 - Lines 265 to 269:
265 An implementation type may allow component implementations to declare lifecycle methods that are
266 called when an implementation is instantiated or the scope is expired. @Init denotes the method to be
267 called upon first use of an instance during the lifetime of the scope (except for composite scoped
268 implementation marked to eagerly initialize, see Section XXX). @Destroy specifies the method to be called
269 when the scope ends. *Note that only public, no argument methods may be annotated as lifecycle methods.*

Currently @Init and @Destroy annotations on a protected method does not result in an error or a warning whereas these annotations on a private method results in a warning.  Should it result in an error in both cases?

  was:
Java Common Annotations and APIs Specification v1.00 - Sec 1.2.4 - Lines 265 to 269:
265 An implementation type may allow component implementations to declare lifecycle methods that are
266 called when an implementation is instantiated or the scope is expired. @Init denotes the method to be
267 called upon first use of an instance during the lifetime of the scope (except for composite scoped
268 implementation marked to eagerly initialize, see Section XXX). @Destroy specifies the method to be called
269 when the scope ends. Note that only public, no argument methods may be annotated as lifecycle methods.

Currently @Init and @Destroy annotations on a protected method does not result in an error or a warning whereas these annotations on a private method results in a warning.  Should it result in an error in both cases?


> @Init and @Destroy annotations on a non-public method 
> ------------------------------------------------------
>
>                 Key: TUSCANY-2272
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2272
>             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
>
>
> Java Common Annotations and APIs Specification v1.00 - Sec 1.2.4 - Lines 265 to 269:
> 265 An implementation type may allow component implementations to declare lifecycle methods that are
> 266 called when an implementation is instantiated or the scope is expired. @Init denotes the method to be
> 267 called upon first use of an instance during the lifetime of the scope (except for composite scoped
> 268 implementation marked to eagerly initialize, see Section XXX). @Destroy specifies the method to be called
> 269 when the scope ends. *Note that only public, no argument methods may be annotated as lifecycle methods.*
> Currently @Init and @Destroy annotations on a protected method does not result in an error or a warning whereas these annotations on a private method results in a warning.  Should it result in an error in both cases?

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