You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org> on 2007/08/24 06:12:31 UTC

[jira] Updated: (VELOCITY-561) Parse failures occur for cases involving a line comment that contains a multi-line comment.

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

Will Glass-Husain updated VELOCITY-561:
---------------------------------------

    Fix Version/s: 1.6

> Parse failures occur for cases involving a line comment that contains a multi-line comment.
> -------------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-561
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-561
>             Project: Velocity
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Windows XP Pro, Velocity 1.4 release which is part of spring-framework-1.2.8 download.
>            Reporter: Jeff Greimann
>            Priority: Minor
>             Fix For: 1.6
>
>
> Created a line (amongst several) which contained the following:
> ## #* *# ${user
> The source of the problem seems to come from having a multi-line comment follow a 
> line comment.  Other character sequences after these comments appear to cause
> other subsequence parer error.
> The above example causes the following parser error:
> Caused by: org.apache.velocity.exception.ParseErrorException: Encountered "\r\n" at line 60, column 16.
> Was expecting one of:
>     "}" ...
>     <DOT> ...
>     
> 	at org.apache.velocity.Template.process(Template.java:141)
> 	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:423)
> 	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:341)
> 	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)
> 	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:813)
> 	at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:470)
> 	at iht.mail.velocity.VelocityEmailTemplateFactory.getTemplate(VelocityEmailTemplateFactory.java:280)
> 	... 2 more

-- 
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org