Closed
Description
Richard Larson opened SPR-7567 and commented
public interface ListableController<Model> {
@ModelAttribute("results")
@RequestMapping(method = RequestMethod.GET)
public List<Model> index(
@RequestParam(defaultValue = "1") Integer page);
}
//Page should be equal to one but is not.
public class Foo implements ListableController<Person> {
public List<Person> index(Integer page) {
System.out.println(page + " should be equal to one but is not.");
return new ArrayList<Person>();
}
}
May possibly be related to #11985.
Affects: 3.0.4
Attachments:
- MethodParameter.patch (1.74 kB)
Issue Links:
- HandlerMethodResolver does not handle hierarchy of generic interfaces with @MVC annotations [SPR-7355] #11985 HandlerMethodResolver does not handle hierarchy of generic interfaces with
@MVC
annotations
2 votes, 7 watchers