You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Laurent Guerin (JIRA)" <de...@velocity.apache.org> on 2011/09/07 18:15:11 UTC
[jira] [Created] (VELOCITY-810) Parse Error Exception when using
"#execute(...)" in template file - Velocity 1.6 and 1.7
Parse Error Exception when using "#execute(...)" in template file - Velocity 1.6 and 1.7
----------------------------------------------------------------------------------------
Key: VELOCITY-810
URL: https://issues.apache.org/jira/browse/VELOCITY-810
Project: Velocity
Issue Type: Bug
Components: Engine
Affects Versions: 1.7
Environment: Java 1.5
Reporter: Laurent Guerin
The following lines in a .vm file trigger a ParseErrorException : Lexical error
/* (non-Javadoc)
* @see org.objectweb.telosys.service.ScreenService#execute(org.objectweb.telosys.screen.env.ScreenSession, org.objectweb.telosys.service.ServiceRequest, org.objectweb.telosys.service.ServiceResponse)
*/
public View execute(ScreenSession screenSession, ServiceRequest request, ServiceResponse response) throws TelosysException
{
}
This template is used for Java code generation. It was working fine before Velocity 1.6
The problem cause seams to be "#execute()" ( considered as a macro ? )
When adding a Backslash before # the error doesn't occur
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org