commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Perez" <hak...@gmail.com>
Subject [Collections] ListUtils.transformedList unaffected by invokerTransformer ?
Date Fri, 31 Aug 2007 11:07:48 GMT
Hi !

Not sure if this is a bug or intended behaviour, given the following code :

Transformer t = TransformerUtils.invokerTransformer("toLowerCase");
List<String> abc = new ArrayList<String>();
abc.add("A");
List<String> tabc = ListUtils.transformedList(abc, t);
System.out.println("tabc:" + tabc);

This will return : tabc:[A] instead of tabc:[a].

A single transform works, String a = (String)t.transform("A"); will
return a lowercase "a".

Is it a bug ?

Thanks
laurent



-- 
<a href="http://in-pocket.blogspot.com">http://in-pocket.blogspot.com
- Mobile world, technology and more</a>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message