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

Support varargs in method calls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6, 2.0
    • None
    • 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.

      Attachments

        1. varargs.2.diff
          30 kB
          Nathan Bubna

        Activity

          People

            Unassigned Unassigned
            nbubna Nathan Bubna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: