CollectionUtils.transform fails when collection is HashMap$Values
-----------------------------------------------------------------
Key: COLLECTIONS-308
URL: https://issues.apache.org/jira/browse/COLLECTIONS-308
Project: Commons Collections
Issue Type: Bug
Components: Collection
Affects Versions: 3.2
Environment: Ubuntu
Reporter: Lluís Martínez
Priority: Minor
I'm trying to apply a transformation to all values in a map :
Collection values = map.values();
CollectionUtils.transform((Collection)values, this);
Gives a java.lang.UnsupportedOperationException in CollectionUtils line 439.
According to Javadoc the method values of Hashmap "does not support the add or
addAll operations.".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.