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

Call to evaluate inside of macro fails with 1.5 beta2

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.5 beta2
    • 1.5
    • Engine
    • None
    • 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.

      Attachments

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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            henning Henning Schmiedehausen
            reggieriser Reggie Riser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment