[ 
https://issues.apache.org/jira/browse/VELOCITY-667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Benedict updated VELOCITY-667:
-----------------------------------

    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);

  was:
With version 1.5, VelocityEngine.mergeTemplate() would throw VelocityException 
if I specified a bad template name. Now in 1.6.1, it renders an empty string.

velocityEngine.mergeTemplate(templateLocation, velocityContext, writer);

        Summary: Regression: Specifying bad grammar no longer throws 
VelocityException  (was: Regression: Specifying bad template name to 
VelocityEngine.mergeTemplate no longer throws Exception)

> Regression: Specifying bad grammar no longer throws VelocityException
> ---------------------------------------------------------------------
>
>                 Key: VELOCITY-667
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-667
>             Project: Velocity
>          Issue Type: Bug
>    Affects Versions: 1.6.1
>            Reporter: Paul Benedict
>
> 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);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to