[jbossts-issues] [JBoss JIRA] (JBTM-998) Allow participant lifecycle methods to be declared private

Paul Robinson (Resolved) (JIRA) jira-events at lists.jboss.org
Mon Dec 12 04:06:09 EST 2011

     [ https://issues.jboss.org/browse/JBTM-998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Robinson resolved JBTM-998.

    Resolution: Done

> Allow participant lifecycle methods to be declared private
> ----------------------------------------------------------
>                 Key: JBTM-998
>                 URL: https://issues.jboss.org/browse/JBTM-998
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: TXFramework
>    Affects Versions: 5.0.0.M1
>            Reporter: Paul Robinson
>            Assignee: Paul Robinson
>             Fix For: 5.0.0.M2
> Currently following lifecycle method (and any other that is declared private) will never be invoked:
> {code}
> @Compensate
> private void cancelOrder()
> {
>   ...
> }
> {code}
> This is because it is declared private and thus never seen by the reflection mechanism.
> The improvement is to have private methods also considered when searching for lifecycle methods. public methods will always be found, even if they are present in a super class. However, private methods in the super class can not be found. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossts-issues mailing list