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

Backwards compatability lost on templates with 1.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.3-rc1
    • 1.5
    • Engine
    • None
    • Operating System: All
      Platform: PC
    • 10998

    Description

      With the latest 1.3 download, some templates are failing (with
      ReferenceExceptions) that were working perfectly under 1.2, an example of which
      follows.

      I have a method in a utility class which is placed onto the context;

      public static String createMethodLine(String visibility, String methodName,
      List params, Map colData, String returnType, boolean throwsSQLException,
      boolean retrieveByParams);

      In the template, I have the following;

      $TGUtils.createMethodLine("public", "retrieve", $index.getIndexColumns(),
      $tableData.get($tableName).getColumnData(), "boolean", false, true)

      where $index.getIndexColumns() is a java.util.ArrayList and $tableData.get
      ($tableName).getColumnData() is a java.util.TreeMap.

      Works under 1.2 but throws ReferenceExceptions under 1.3

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--weirdbug.zip
          2 kB
          Will Glass-Husain

        Activity

          People

            Unassigned Unassigned
            stu@cuyahoga.co.uk Stu Churchill
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: