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

Parse Error Exception when using "#execute(...)" in template file - Velocity 1.6 and 1.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.7
    • None
    • Engine
    • None
    • Java 1.5

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            lgu Laurent Guerin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: