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

directive.Parse eating RuntimeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5
    • Engine
    • None

    Description

      The org.apache.velocity.runtime.directive.Parse class is "eating" RuntimeExceptions thrown by Nodes being rendered on line 195. These errors are logged, but are not rethrown.

      These types of errors are typically NPE being thrown by model objects trying to render themselves using their toString() method.

      It is better if any RuntimeExceptions are not caught by this method, as it allows the calling code to document/report the error.

      Attachments

        1. Parse_patch.txt
          0.7 kB
          Malcolm Edgar

        Activity

          People

            henning Henning Schmiedehausen
            medgar Malcolm Edgar
            Votes:
            5 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: