@AliasFor attribute name should default to declaring attribute [SPR-13828] #18401
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Juergen Hoeller opened SPR-13828 and commented
@AliasFor
currently insists on the attribute name to be specified, through eitherattribute
orvalue
. For references to same-named attributes on meta-annotations, the attribute name could easily default to the declaring attribute. A typical use case is creating custom@Value
annotations with a mirroredvalue
attribute (#18181).Affects: 4.2.4
Issue Links:
@Value
cannot be used as aliased meta-annotationReferenced from: commits 3242ad8
The text was updated successfully, but these errors were encountered: