Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6, 2.x
    • Component/s: None
    • Labels:
      None

      Description

      If possible and as much as possible without breaking JDK 1.3/JDK 1.4 runtime support, i would like to see us support varargs for method calls. So,

      public class MyTool {
      public List combine(List... lists)

      { ... }

      }

      #set( $twoLists = $myTool.combine($list1, $list2) )
      #set( $threeLists = $myTool.combine($list1, $list2, $list3) )

      will work out of the box, without need for the user to rebuild Velocity themselves.

      1. varargs.2.diff
        30 kB
        Nathan Bubna

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551951 ] jira [ 12552331 ]
        Mark Thomas made changes -
        Workflow jira [ 12400447 ] Default workflow, editable Closed status [ 12551951 ]
        Nathan Bubna made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Nathan Bubna made changes -
        Attachment varargs.diff [ 12365533 ]
        Nathan Bubna made changes -
        Attachment varargs.2.diff [ 12365590 ]
        Nathan Bubna made changes -
        Field Original Value New Value
        Attachment varargs.diff [ 12365533 ]
        Nathan Bubna created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Nathan Bubna
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development