As a workaround, try wrapping your list in another list:
yyy.populateCategoryRollupFromBlocks( catRollupBlock, [ blockList ]
);
It may be that some layer of the method-calling logic is spreading your
list. This would be a bug.
-- John
On Oct 11, 2004, at 14:16, Randy Thornton wrote:
I have a java class with a method that takes two arguments. One is a
class I define and the other is a List interface. The call to the
method from groovy works if the List is empty, but fails if the List
has elements in it. I get an error that the second argument is the
wrong class and the class type is the first element of the List. How
do I tell it to pass the List to the method?
Vector blockList = new Vector();
blockList.add( salesRollupBlock );
yyy.populateCategoryRollupFromBlocks( catRollupBlock, (List)blockList
);
|