Closed
Description
Sam Brannen opened SPR-13289 and commented
Status Quo
#16137 introduced support for annotation attribute aliases via @AliasFor
. For example, this support allows @ContextConfiguration
from the spring-test
module to declare aliases as follows:
public @interface ContextConfiguration {
@AliasFor(attribute = "locations")
String[] value() default {};
@AliasFor(attribute = "value")
String[] locations() default {};
// ...
}
For greater readability, it would be beneficial to be able to omit the attribute = "..."
declaration by providing a value
alias for attribute
.
Deliverables
- Introduce a
value
alias forattribute
in@AliasFor
.
Affects: 4.2 RC1
Issue Links:
- Introduce unified support for declaring and looking up annotation attribute aliases [SPR-11512] #16137 Introduce unified support for declaring and looking up annotation attribute aliases ("depends on")