Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-36

Throw actions are compiled incorrectly and end up throwing the wrong type of exception

XMLWordPrintable

      The current compiler plants code to create the throwable specified in the throw action but fails to wrap it in a ThrowException before throwing it. This means it is caught by the rule engine and rethrown as an ExecuteException which is then rethrown (as a runtime exception) by the handler code injected into the rule's trigger method. The correct behaviour is for the ThrowException to pass out of the rule engine to the injected handler which unwraps the embedded throwable and rethrows it to the caller of the trigger method.

              rhn-engineering-adinn Andrew Dinn
              rhn-engineering-adinn Andrew Dinn
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: