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

Regression: Specifying #macro without parenthesis no longer throws VelocityException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2
    • Engine
    • None

    Description

      With version 1.5, VelocityEngine.mergeTemplate() would throw VelocityException if I specified a grammar error in the template. This is what I was using my unit test to show that parsing would fail:

      #macro #macro

      Now in 1.6.1, it renders an empty string. Method:
      velocityEngine.mergeTemplate(templateLocation, velocityContext, writer);

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbenedict Paul Benedict
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: