Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6, 2.0
    • 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.

        Attachments

        1. varargs.2.diff
          30 kB
          Nathan Bubna

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: