You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ivan Krizsan (JIRA)" <de...@tuscany.apache.org> on 2010/03/19 04:07:27 UTC

[jira] Updated: (TUSCANY-3505) @Destroy annotation not allowed on non-public methods.

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

Ivan Krizsan updated TUSCANY-3505:
----------------------------------

    Patch Info: [Patch Available]

> @Destroy annotation not allowed on non-public methods.
> ------------------------------------------------------
>
>                 Key: TUSCANY-3505
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3505
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-2.0-M3
>         Environment: Affects version 2.0-M4 and recent nightly builds.
>            Reporter: Ivan Krizsan
>         Attachments: impl_patch, testcase_patch
>
>
> There seems to be a bug in 2.0M4 preventing the use of @Destroy on private and protected methods. If @Destroy is used to annotate a method with package visibility, no exception is thrown but the method is never called when the component is to be taken out of service.
> According to section 10.8 in Service Component Architecture SCA-J Common Annotations and APIs Specification Version 1.1, such a method may have
> any access modifier.
> To correct this, remove lines 62-64 in the class org.apache.tuscany.sca.implementation.java.introspect.impl.DestroyProcessor in the module implementation-java.

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