Skip to content

@Gateway doesn't support the @AliasFor. #3931

@Kicey

Description

@Kicey

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 "";
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions