Details
Description
In commons-configuration 1.7 Configuration.getList had signature:
public List getList(String key, List defaultValue)
But it was changed in 1.8 to:
public List<Object> getList(String key, List<Object> defaultValue)
So something like this:
Configuration conf = ...; // some configuration List<String> defaults = ...; // some default value List<Object> value = conf.getList("id", defaults);
will fail at compile-time.
To fix this signature should change to
public List<Object> getList(String key, List<? extends Object> defaultValue)
in Configuration and all its implementations.
Attachments
Issue Links
- is cloned by
-
CONFIGURATION-558 Configuration no longer accepts List<String> as default for getList()
- Closed