-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
In what version(s) of Spring Integration are you seeing this issue?
For example:
5.5.15
Describe the bug
@Gateway
is allowed to annotated on custom Annotation, but the @AliasFor
support is missing. GatewayProxyFactoryBean
can't get attributes overrided by using @AliasFor
.
To Reproduce
Create custom Annotation annotated with @Gateway
and try to override attributes by using @AliasFor
, and try to invoke the method.
Expected behavior
@AliasFor
support for custom Annotation annotated with @Gateway
.
Sample
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Gateway
public @interface OtherAnnotation {
@AliasFor("value")
String[] others() default {};
@AliasFor("others")
String[] value() default {};
@AliasFor(annotation = Gateway.class, attribute = "requestChannel")
String requestChannel() default "";
}