Synthesize parameter annotations from interface methods as well
Issue: SPR-17460
This commit is contained in:
@@ -411,9 +411,9 @@ public class RequestMappingHandlerAdapterIntegrationTests {
|
||||
private interface HandlerIfc {
|
||||
|
||||
String handleInInterface(
|
||||
@CookieValue("cookie") int cookie,
|
||||
@PathVariable("pathvar") String pathvar,
|
||||
@RequestHeader("header") String header,
|
||||
@CookieValue("cookie") int cookieV,
|
||||
@PathVariable("pathvar") String pathvarV,
|
||||
@RequestHeader("header") String headerV,
|
||||
@RequestHeader(defaultValue = "#{systemProperties.systemHeader}") String systemHeader,
|
||||
@RequestHeader Map<String, Object> headerMap,
|
||||
@RequestParam("dateParam") Date dateParam,
|
||||
@@ -459,9 +459,9 @@ public class RequestMappingHandlerAdapterIntegrationTests {
|
||||
}
|
||||
|
||||
public String handle(
|
||||
@CookieValue("cookie") int cookie,
|
||||
@PathVariable("pathvar") String pathvar,
|
||||
@RequestHeader("header") String header,
|
||||
@CookieValue("cookie") int cookieV,
|
||||
@PathVariable("pathvar") String pathvarV,
|
||||
@RequestHeader("header") String headerV,
|
||||
@RequestHeader(defaultValue = "#{systemProperties.systemHeader}") String systemHeader,
|
||||
@RequestHeader Map<String, Object> headerMap,
|
||||
@RequestParam("dateParam") Date dateParam,
|
||||
@@ -481,7 +481,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
|
||||
Model model,
|
||||
UriComponentsBuilder builder) {
|
||||
|
||||
model.addAttribute("cookie", cookie).addAttribute("pathvar", pathvar).addAttribute("header", header)
|
||||
model.addAttribute("cookie", cookieV).addAttribute("pathvar", pathvarV).addAttribute("header", headerV)
|
||||
.addAttribute("systemHeader", systemHeader).addAttribute("headerMap", headerMap)
|
||||
.addAttribute("dateParam", dateParam).addAttribute("paramMap", paramMap)
|
||||
.addAttribute("paramByConvention", paramByConvention).addAttribute("value", value)
|
||||
@@ -498,9 +498,9 @@ public class RequestMappingHandlerAdapterIntegrationTests {
|
||||
|
||||
@Override
|
||||
public String handleInInterface(
|
||||
int cookie,
|
||||
String pathvar,
|
||||
String header,
|
||||
int cookieV,
|
||||
String pathvarV,
|
||||
String headerV,
|
||||
String systemHeader,
|
||||
Map<String, Object> headerMap,
|
||||
Date dateParam,
|
||||
@@ -520,7 +520,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
|
||||
Model model,
|
||||
UriComponentsBuilder builder) {
|
||||
|
||||
model.addAttribute("cookie", cookie).addAttribute("pathvar", pathvar).addAttribute("header", header)
|
||||
model.addAttribute("cookie", cookieV).addAttribute("pathvar", pathvarV).addAttribute("header", headerV)
|
||||
.addAttribute("systemHeader", systemHeader).addAttribute("headerMap", headerMap)
|
||||
.addAttribute("dateParam", dateParam).addAttribute("paramMap", paramMap)
|
||||
.addAttribute("paramByConvention", paramByConvention).addAttribute("value", value)
|
||||
|
||||
Reference in New Issue
Block a user