Skip to content

Replace getAnnotation to findAnnotation in MethodKafkaListenerEndpoint::getReplyTopic() #2304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
VovkaSOL opened this issue Jun 14, 2022 · 0 comments · Fixed by #2305
Closed

Comments

@VovkaSOL
Copy link

Expected Behavior

@sendto annotation must be scanned for method in abstract class

Current Behavior

@KafkaListener scanned in abstract class(because use AnnotationUtils.findAnnotation), but @sendto can't scanned (because use SendTo ann = AnnotationUtils.getAnnotation(replyingMethod, SendTo.class);)

Context

@garyrussell garyrussell added this to the 3.0.0.M5 milestone Jun 14, 2022
@garyrussell garyrussell self-assigned this Jun 14, 2022
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jun 14, 2022
Resolves spring-projects#2304

`@SendTo` was only detected on the concrete listener method.

Use `AnnotatedElementUtils.findMergedAnnotation()` instead.

**cherry-pick to 2.9.x, 2.8.x**
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jun 14, 2022
Resolves spring-projects#2304

`@SendTo` was only detected on the concrete listener method.

Use `AnnotatedElementUtils.findMergedAnnotation()` instead.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Jun 14, 2022
Resolves #2304

`@SendTo` was only detected on the concrete listener method.

Use `AnnotatedElementUtils.findMergedAnnotation()` instead.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Jun 14, 2022
Resolves #2304

`@SendTo` was only detected on the concrete listener method.

Use `AnnotatedElementUtils.findMergedAnnotation()` instead.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Jun 14, 2022
Resolves #2304

`@SendTo` was only detected on the concrete listener method.

Use `AnnotatedElementUtils.findMergedAnnotation()` instead.

**cherry-pick to 2.9.x, 2.8.x**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants