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

Regression for closing round parenthesis in macro calls compared to v1.7

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Windows 7
      Java SE 1.8.0-152

      Description

      The v2.0 engine throws a ParseErrorException for macro calls like:

      #macro(printCertificateToggleRow $keyName, $summary, $certificateDetails, $cssSummary)
        #printToggleAccordionDataCSS(
          "#printLabelValue($keyName, $summary)",
          "#printCertificateDetails($certificateDetails)",
          "",
          $cssSummary,
          "",
          ""
        )
      #end
      

      It seems, that the closing round parenthesis has a problem with the line break (0x0D0A). It works, if the closing parenthesis stands right behind the last parameter.

      Exception (partly):

      Caused by: org.apache.velocity.exception.ParseErrorException: Encountered ")" at html/inspectionsheet_html_macros.vm[line 69, column 5]
      Was expecting one of:
          "," ...
          "##" ...
          <WHITESPACE> ...
          <NEWLINE> ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                claude Claude Brisson
                Reporter:
                moehrke Oliver Moehrke
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: