Menu

#12 Method move and add caused error

open
nobody
None
5
2004-06-05
2004-06-05
No

Between commons-collections 2.1 and 3.1 (see nightly
builds) this method was removed (now uses superclass
version of method):

void putAll(Map)

and this method added:

boolean putAll(Object, Collection)

Clirr mixes up these two separate changes, reporting

ERROR: In Method 'public void putAll(java.util.Map)' the
number of arguments has changed in
org.apache.commons.collections.MultiHashMap
ERROR: Return type of Method 'public void putAll
(java.util.Map)' has been changed to boolean in
org.apache.commons.collections.MultiHashMap

This is related to 961227. The proper response would be

INFO: Method removed 'public void putAll(java.util.Map)',
now uses version on superclass
INFO: Method added 'boolean putAll(Object,Collection)'

Discussion


Log in to post a comment.