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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.1
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: