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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to