Skip to content

Remove listenerScope field override in annotation processors #1189

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

Merged

Conversation

onobc
Copy link
Collaborator

@onobc onobc commented Jul 21, 2025

This commit fixes the case where SpEL expressions using the __listener. bean ref were failing due to the concrete impls of the AbstractPulsarAnnotationsBeanPostProcessor hiding/overriding their parent's listenerScope field by removing the listenerScope field from the following concrete impls:

  • PulsarListenerAnnotationBeanPostProcessor
  • ReactivePulsarListenerAnnotationBeanPostProcessor

See #1169

This commit fixes the case where SpEL expressions using the `__listener.`
bean ref were failing due to the concrete impls of the
`AbstractPulsarAnnotationsBeanPostProcessor` hiding/overriding their
parent's `listenerScope` field by removing the `listenerScope` field from
the following concrete impls:
- PulsarListenerAnnotationBeanPostProcessor
- ReactivePulsarListenerAnnotationBeanPostProcessor

Fixes spring-projects#1169

Signed-off-by: Chris Bono <[email protected]>
@onobc onobc added this to the 2.0.0-M1 milestone Jul 21, 2025
@onobc onobc added the type: bug A general bug label Jul 21, 2025
@onobc onobc merged commit cf7af65 into spring-projects:main Jul 21, 2025
7 checks passed
@onobc onobc deleted the GH-1169-remove-listenerScope-override-20x branch July 21, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant