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

ThreadAction.currentAction uses Exception for branch logic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.12.0, 4.6.1.CP06
    • 4.11.0, 4.6.1.CP05
    • Transaction Core
    • None

      Using exceptions for logic is a performance bottleneck.

      if (txs != null)
      {
      try

      { return (BasicAction) txs.peek(); }

      catch (EmptyStackException e)
      {
      }
      }

              rhn-engineering-jhallida Jonathan Halliday
              rhn-engineering-cdewolf Carlo de Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: