Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-284

MethodInvocationException is handled inconsistently

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4, 1.5
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: Other
    • Bugzilla Id:
      30220

      Description

      It appears that the exception handling is different depending on whether the
      method is invoked as a passed parameter to a velocimacro or just in a template.

      Ex.

      #doTextLink( ${myObj.exception})

      ${myObj.exception}

      The first #doTextLink macro will throw an exception, but it will be logged and
      ignored. However, the second invocation will throw the exception properly.

      I have a patch that should fix this behavior. The exception just needs to be
      rethrown up the call stack. A small signature change to a couple of methods.

      Thanks,

      Mike Rettig

        Attachments

          Activity

            People

            • Assignee:
              wglass Will Glass-Husain
              Reporter:
              mike.rettig@gmail.com Mike Rettig
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: