Support varargs in method calls
-------------------------------
Key: VELOCITY-534
URL: https://issues.apache.org/jira/browse/VELOCITY-534
Project: Velocity
Issue Type: Improvement
Affects Versions: 1.5
Reporter: Nathan Bubna
Fix For: 1.6, 2.0
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]