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

Velocity wraps java.lang.Error in org.apache.velocity.exception.MethodInvocationException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 2.0
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      n.a.

      Description

      If a method call throws a java.lang.Error, Velocity wraps it in a MethodInvocationException, which itself is not a java.lang.Error.

      The spec says: "An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch."

      Wrapping the error hides it from applications and makes it difficult to handle.

        Attachments

          Activity

            People

            • Assignee:
              cbrisson Claude Brisson
              Reporter:
              veita Alexander Veit
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: