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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • 2.0
    • Engine
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: