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

ParseErrorException with square brackets without leading space in velocity 2.1 from 1.4

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.1
    • Fix Version/s: 1.7.x
    • Component/s: None
    • Labels:
      None

      Description

      I have upgraded from velocity 1.4 to velocity-engine-core 2.1.
      I have also added the properties for backward compatibilty as mentioned in the page https://velocity.apache.org/engine/2.1/upgrading.html.
      However, with the new jar I am getting parse exception with the getTemplate method for vm file having content '$methodName[]'. This was working with velocity 1.4

        Attachments

        1. helloworld.vm
          0.0 kB
          swati agarwal
        2. HelloWorld.java
          2 kB
          swati agarwal

          Activity

            People

            • Assignee:
              cbrisson Claude Brisson
              Reporter:
              swatiagarwal swati agarwal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: