Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-998

Allow participant lifecycle methods to be declared private

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 4.17.0.M1/5.0.0.M1
    • 5.0.0.M2
    • Compensations
    • None

    Description

      Currently following lifecycle method (and any other that is declared private) will never be invoked:

      @Compensate
      private void cancelOrder()
      {
        ...
      }
      

      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.

      Attachments

        Activity

          People

            paul.robinson@redhat.com Paul Robinson
            paul.robinson@redhat.com Paul Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: