|
| Description: |
*Steps to reproduce:*
Execute the following Velocity code in XWiki: {noformat} #set ($ mySet myList = $collectiontool.getOrderedSet( [] ) ) #set ($myString = 'a few words') #set ($myArray = $ stringtool myString .split( $myString, ' ')) #set ($discard = $ mySet myList .addAll($myArray)) $ mySet myList {noformat}
*Expected result:*
{noformat} [a, few, words] {noformat}
*Actual result:*
{noformat} [] {noformat}
The root cause seems to be that the conversion of the argument fails because during the conversion the type variable isn't resolved.
See XCOMMONS-129 for a workaround how to convert the array to a list first. |
| Assignee: |
Thomas Mortagne |
| Status: |
Open In Progress |
|