Velocity
  1. Velocity
  2. VELOCITY-504

Call to evaluate inside of macro fails with 1.5 beta2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.5 beta2
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Windows XP, Sun J2SE 1.5.0_09

      Description

      When upgrading from 1.5 beta 1 to beta2, I ran into a problem with one of our macros that makes a call to Velocity.evaluate (via a tool) within a foreach loop. With beta 1, everything worked fine. But we get a "cannot be resolved" error with beta 2. The same code works fine outside of a macro with either version.

      I've distilled the issue we're having down to a simple test case and have attached example code and a build file showing the problem. Just do an "ant beta1" or "ant beta2" to see how the results differ between beta1 and beta2.

      1. evaltooltest.patch
        10 kB
        Will Glass-Husain
      2. macrotest.zip
        1.86 MB
        Reggie Riser

        Issue Links

          Activity

          Reggie Riser created issue -
          Reggie Riser made changes -
          Field Original Value New Value
          Attachment macrotest.zip [ 12345970 ]
          Henning Schmiedehausen made changes -
          Assignee Henning Schmiedehausen [ henning ]
          Will Glass-Husain made changes -
          Fix Version/s 1.5 [ 12310253 ]
          Will Glass-Husain made changes -
          Attachment evaltooltest.patch [ 12348158 ]
          Will Glass-Husain made changes -
          Link This issue is related to VELOCITY-509 [ VELOCITY-509 ]
          Henning Schmiedehausen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Henning Schmiedehausen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mark Thomas made changes -
          Workflow jira [ 12390965 ] Default workflow, editable Closed status [ 12551482 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12551482 ] jira [ 12552152 ]

            People

            • Assignee:
              Henning Schmiedehausen
              Reporter:
              Reggie Riser
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development