#617 - AnnotatedParametersParameterAccessor now considers @AliasFor declarations.

We're now using SynthesizingMethodParameter to correctly support annotation attributes that use @AliasFor.

Original pull request: #621.
This commit is contained in:
Greg Turnquist
2017-09-01 16:09:41 -05:00
committed by Oliver Gierke
parent 4ad8c3b9aa
commit 5faf9858bb
3 changed files with 35 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ import java.util.Map;
import org.springframework.core.DefaultParameterNameDiscoverer;
import org.springframework.core.MethodParameter;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.core.annotation.SynthesizingMethodParameter;
import org.springframework.util.Assert;
import org.springframework.util.ConcurrentReferenceHashMap;
@@ -151,7 +152,7 @@ public class MethodParameters {
*
* @author Oliver Gierke
*/
private static class AnnotationNamingMethodParameter extends MethodParameter {
private static class AnnotationNamingMethodParameter extends SynthesizingMethodParameter {
private final AnnotationAttribute attribute;
private String name;