spring-projects/spring-framework — pull request #515 by MoonJongMin (2014-04-18 01:52:54+00:00)
Title: With relation to [SPR-11126] problem converting empty parameter to List,

We want to get a request parameter with the type of List in the Spring-mvc Controller class like below

SampleController.java
@RequestMapping(value = "/urlpath")
public void create(@RequestParam(value = "param") List paramList) {
...
}

When invoking ".../urlpath?param=", We expect List has size 1 with empty String value, but actually the size of List is 0.

Actually StringUtils.commaDelimitedListToStringArray(String) method is a real worker, but the purpose of that method is to return the empty array in case of empty input(by java doc).
So, I slightly chnaged convert(Object source, TypeDescriptor sourceType,
TypeDescriptor targetType) method in the StringToCollectionConverter
class.

reated Issue: SPR-11126