You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AnnotationFormatterFactory should support @AliasFor [SPR-14844] #19410
Thanks for raising this! Indeed: an unfortunate limitation, originating from the legacy annotation support in TypeDescriptor. I've revised this towards our modern-day 4.3 facilities now, with formatting annotations now being equally capable (and following the same rules) as the general composable annotation model in Spring.
As a side note, there was a backwards compatibility concern with TypeDescriptor's legacy algorithm preferring inherited annotations over locally declared composed annotations. It turns out that this would only affect lookups on a Class whereas TypeDescriptor is only designed to work against fields and method parameters, so there was no reason to hold on to it.
Activity
spring-projects-issues commentedon Oct 28, 2016
Juergen Hoeller commented
Thanks for raising this! Indeed: an unfortunate limitation, originating from the legacy annotation support in
TypeDescriptor. I've revised this towards our modern-day 4.3 facilities now, with formatting annotations now being equally capable (and following the same rules) as the general composable annotation model in Spring.As a side note, there was a backwards compatibility concern with
TypeDescriptor's legacy algorithm preferring inherited annotations over locally declared composed annotations. It turns out that this would only affect lookups on aClasswhereasTypeDescriptoris only designed to work against fields and method parameters, so there was no reason to hold on to it.