Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP SP2

      Description

      There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter "directive.set.null.allowed" must be set to "true".

      Scenario 1 (correct behaviour outside macro):

      #set ($test = "test")
      $test
      #set ($test = $null)
      $test

      yields to the output:

      test
      $test

      Scenario 2 (erroneous behaviour using macro):

      #macro (test)
      #set ($test = "test")
      $test
      #set ($test = $null)
      $test
      #end

      #test()

      yields to the output:

      test
      test

      and the varibale test has not been resetted to null which is the error.

        Activity

        Hide
        jukefox added a comment -

        Sorry for the multiple edits. That is my fist ticket posted in JIRA. My hope was that some text-formatting would be possible within the description field but this seems not be the case.

        Show
        jukefox added a comment - Sorry for the multiple edits. That is my fist ticket posted in JIRA. My hope was that some text-formatting would be possible within the description field but this seems not be the case.
        Hide
        jukefox added a comment -

        Corrected my output in scenario 1.

        Show
        jukefox added a comment - Corrected my output in scenario 1.
        Hide
        Will Glass-Husain added a comment -

        Hi,

        Thanks for reporting this. This is now fixed in svn trunk. context.remove wasn't working properly within macros when the local scope was off.

        WILL

        Show
        Will Glass-Husain added a comment - Hi, Thanks for reporting this. This is now fixed in svn trunk. context.remove wasn't working properly within macros when the local scope was off. WILL

          People

          • Assignee:
            Unassigned
            Reporter:
            jukefox
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development